generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Roblox Lua Is Acting Weird

Previous Thread :: Next Thread 
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:17 AM
Play = game.Workspace.GoodToPlay
Winner = game.Workspace.Winner.Value
WinnerPerson = game.Workspace.WinnerPerson

while true do
wait(4)
if Play.Value then
Message = Instance.new("Message",game.Workspace)
Message.Text = "Welcome To Climb A Avalanche To Win Points"
wait(1.7)
Message.Text = "Selecting A Map."
wait(0.1)
Message.Text = "Selecting A Map.."
wait(0.1)
Message.Text = "Selecting A Map..."
wait(0.1)
Message.Text = "Selecting A Map."
wait(0.1)
Message.Text = "Selecting A Map.."
Map = game.Lighting.Maps[math.random(1,#game.Lighting.Maps:GetChildren())]
wait(0.1)
Message.Text = "Selecting A Map..."
wait(0.1)
Message.Text = "Map Selected: "..Map.Name
wait(2)
Message.Text = "Teleporting Players To The Start"
P = game.Players:GetChildren()
for i = 1, #P do
P[i].Character.Torso.Anchored = true
P[i].Character:MoveTo(Map.Spwan)
wait(0.1)
end
wait(0.5)
Message.Text = "Ready..."
wait(1)
Message.Text = "Set..."
wait(0.5)
Message.Text = "GO GO GO"
F = game.Players:GetChildren()
for i = 1, #F do
F[i].Character.Torso.Anchored = false
wait()
end
wait(0.5)
Message:remove()
Hint = Instance.new("Hint",game.Workspace)
Hint.Text = ""
for i = Map.Time.Value,1,-1 do
if Winner then
Hint:remove()
WT = Instance.new("Message",game.Workspace)
WT.Text = "The Winner Of This Round Was "..WinnerPerson.Value.."! They Win 10 Points"
Plry = game.Players:FindFirstChild(WinnerPerson.Value)
Stats = Plry:FindFirstChild("leaderstats")
Points = Stats:FindFirstChild("Points")
Points.Value = Points.Value + 10
wait(2.3)
D = game.Players:GetChildren()
for i = 1, #D do
D[i].Character.Torso:remove()
wait()
end
wait(1.5)
WT.Text = "Starting New Round In 20 Seconds"
wait(0.5)
WT.Text = ""
wait(4.5)
WT.Text = "Starting New Round In 15 Seconds"
wait(0.5)
WT.Text = ""
wait(4.5)
WT.Text = "Starting New Round In 10 Seconds"
wait(0.5)
WT.Text = ""
wait(4.5)
WT.Text = "Starting New Round In 5 Seconds"
wait(1)
WT:remove()
end
return end
elseif not Winner then
wait(0.99)
Hint.Text = "Time Left:"..i
wait(0.01)
end
Hint.Text = "Nobody Won"
wait(0.5)
Hint:remove()
wait()
D = game.Players:GetChildren()
for i = 1, #D do
D[i].Character.Torso:remove()
wait()
end
L = Instance.new("Message",game.Workspace)
L.Text = "Starting New Round In 20 Seconds"
wait(0.5)
L.Text = ""
wait(4.5)
L.Text = "Starting New Round In 15 Seconds"
wait(0.5)
L.Text = ""
wait(4.5)
L.Text = "Starting New Round In 10 Seconds"
wait(0.5)
L.Text = ""
wait(4.5)
L.Text = "Starting New Round In 5 Seconds"
wait(1)
L:remove()
return end
elseif Play.Value == false then---Line 112
PlrRem = Instance.new("Message",game.Workspace)
PlrRem.Text = "2 People Are Required To Play,Invite A Friend"
wait(2)
PlrRem:remove()
return end
end
end


Workspace.Script:112: eof expected near 'elseif'
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:19 AM
Bump
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:23 AM
Nobody ever helps me
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:25 AM
SOMEBODY HELP ME
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:30 AM
Come on like 430 views?
No one gonna help me?
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:32 AM
556? Views

And still no help?
Man SH is going down fast
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:37 AM
Help??????????/
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:38 AM
This thread is gonna stay at the top of SH until someone helps me
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:40 AM
Bump
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:42 AM
Bump
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:44 AM
HELP ME
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:46 AM
Anyone?
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:50 AM
ANYONE
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:53 AM
Bump
Report Abuse
matthewhwang is not online. matthewhwang
Joined: 02 Jun 2008
Total Posts: 5811
22 Aug 2011 03:53 AM
lmao 1038 views
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:54 AM
Can you help me matt please?
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:55 AM
Well Can You?
Report Abuse
matthewhwang is not online. matthewhwang
Joined: 02 Jun 2008
Total Posts: 5811
22 Aug 2011 03:57 AM
You have too many ends. Remove the ends after each return.

return end

should be

return
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 03:58 AM
Ok let me try
Report Abuse
smurf279 is not online. smurf279
Joined: 15 Mar 2010
Total Posts: 6871
22 Aug 2011 04:00 AM
add an extra end before the elseif line
Report Abuse
Iamsuperhumangonemad is not online. Iamsuperhumangonemad
Joined: 13 May 2008
Total Posts: 733
22 Aug 2011 04:02 AM
dude actually tell us what line it is we don't want to count 100+ and don't be so selfish
Report Abuse
Iamsuperhumangonemad is not online. Iamsuperhumangonemad
Joined: 13 May 2008
Total Posts: 733
22 Aug 2011 04:02 AM
Oh and all of those views are from the owner rapidly hitting F5 to get attention.
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 04:09 AM
Play = game.Workspace.GoodToPlay
Winner = game.Workspace.Winner.Value
WinnerPerson = game.Workspace.WinnerPerson

while true do
wait(4)
if Play.Value then
Message = Instance.new("Message",game.Workspace)
Message.Text = "Welcome To Climb A Avalanche To Win Points"
wait(1.7)
Message.Text = "Selecting A Map."
wait(0.1)
Message.Text = "Selecting A Map.."
wait(0.1)
Message.Text = "Selecting A Map..."
wait(0.1)
Message.Text = "Selecting A Map."
wait(0.1)
Message.Text = "Selecting A Map.."
Map = game.Lighting.Maps[math.random(1,#game.Lighting.Maps:GetChildren())]
wait(0.1)
Message.Text = "Selecting A Map..."
wait(0.1)
Message.Text = "Map Selected: "..Map.Name
wait(2)
Message.Text = "Teleporting Players To The Start"
P = game.Players:GetChildren()
for i = 1, #P do
P[i].Character.Torso.Anchored = true
P[i].Character:MoveTo(Map.Spwan)
wait(0.1)
end
wait(0.5)
Message.Text = "Ready..."
wait(1)
Message.Text = "Set..."
wait(0.5)
Message.Text = "GO GO GO"
F = game.Players:GetChildren()
for i = 1, #F do
F[i].Character.Torso.Anchored = false
wait()
end
wait(0.5)
Message:remove()
Hint = Instance.new("Hint",game.Workspace)
Hint.Text = ""
for i = Map.Time.Value,1,-1 do
if Winner then
Hint:remove()
WT = Instance.new("Message",game.Workspace)
WT.Text = "The Winner Of This Round Was "..WinnerPerson.Value.."! They Win 10 Points"
Plry = game.Players:FindFirstChild(WinnerPerson.Value)
Stats = Plry:FindFirstChild("leaderstats")
Points = Stats:FindFirstChild("Points")
Points.Value = Points.Value + 10
wait(2.3)
D = game.Players:GetChildren()
for i = 1, #D do
D[i].Character.Torso:remove()
wait()
end
wait(1.5)
WT.Text = "Starting New Round In 20 Seconds"
wait(0.5)
WT.Text = ""
wait(4.5)
WT.Text = "Starting New Round In 15 Seconds"
wait(0.5)
WT.Text = ""
wait(4.5)
WT.Text = "Starting New Round In 10 Seconds"
wait(0.5)
WT.Text = ""
wait(4.5)
WT.Text = "Starting New Round In 5 Seconds"
wait(1)
WT:remove()
end
return
end
elseif not Winner then
wait(0.99)
Hint.Text = "Time Left:"..i
wait(0.01)
end
Hint.Text = "Nobody Won"
wait(0.5)
Hint:remove()
wait()
D = game.Players:GetChildren()
for i = 1, #D do
D[i].Character.Torso:remove()
wait()
end
L = Instance.new("Message",game.Workspace)
L.Text = "Starting New Round In 20 Seconds"
wait(0.5)
L.Text = ""
wait(4.5)
L.Text = "Starting New Round In 15 Seconds"
wait(0.5)
L.Text = ""
wait(4.5)
L.Text = "Starting New Round In 10 Seconds"
wait(0.5)
L.Text = ""
wait(4.5)
L.Text = "Starting New Round In 5 Seconds"
wait(1)
L:remove()
return
end
elseif not Play.Value then --- 114
PlrRem = Instance.new("Message",game.Workspace)
PlrRem.Text = "2 People Are Required To Play,Invite A Friend"
wait(2)
PlrRem:remove()
return
end
end

Workspace.Script:114: 'eof>' expected near 'elseif'
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 04:13 AM
Anybody?
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
22 Aug 2011 04:16 AM
Bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 2Go to page: [1], 2 Next
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image