|
| 20 Apr 2014 03:37 AM |
end
while wait(50)do GameClockrun() end
Why can't I *********** put a while wait() do or a function after a end without getting a error?
HELP ME PLEASE!
☣ ~ You better make it quick! Or I will rip off your head... ~ ☣ |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 20 Apr 2014 03:45 AM |
| MAYBE BECAUSE THE END DOESNT BELONG |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2014 03:49 AM |
wazap
Scripting Helpers
more like scream at the ppl your suppose to help. Can you explain...
☣ ~ You better make it quick! Or I will rip off your head... ~ ☣ |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2014 03:53 AM |
While wait(50) do -- had to do 3 ends... -- 100 lines of code end end end
wait(50)
☣ ~ You better make it quick! Or I will rip off your head... ~ ☣ |
|
|
| Report Abuse |
|
|
lama321
|
  |
| Joined: 18 Dec 2011 |
| Total Posts: 300 |
|
|
| 20 Apr 2014 04:17 AM |
wait ... why do u need three ends?
ends serve to indicate a finish point of functions or loops. Every loop and every function must have its own end.
If you have start a while loop you must close it with One end |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2014 04:31 AM |
Ok so I got:
wait(1)
function ChooseMod() local P = game.Players:GetChildren() for i=1, 1 do local RP = P[math.random(5,#P)] if RP.Character ~= nil and RP ~= nil then RP.Character.Name = "Mod" RP.Neutral = false RP.TeamColor.TeamColor.new("Really Blue") RP.Character.Humanoid.Health = 0 end
function ChooseTroll() local T = game.Players:GetChildren() for i=1, 1 do local TP = T[math.random(5,#T)] if TP.Character ~= nil and RP ~= nil then TP.Character.Name = "Troll" TP.Neutral = false TP.TeamColor.TeamColor.new("New Yeller") TP.Character.Humanoid.Health = 0 end
while wait(50) do Map1 = game.Lighting.MapByHandsomebob10 Map1Clone = Map1:clone() Map1Clone.Parent = Workspace Spawn1 = game.Workspace.SpawnLocation Spawn1:remove()
wait(1)
Sword1 = game.Lighting.Swordlol SwordClone = Sword1.clone() SwordClone.Parent = StarterPack game.Lighting.FogEnd = 100
ChooseMod() ChooseTroll() Start = Instance.new("Hint") Start.Parent = Workspace Start.Text = "200 seconds till next game." wait(10) Start:remove() wait(200) End2 = Instance.new("Hint") End2.Parent = Workspace End2.Text = "50 seconds till next game." wait(5) End2:remove() Spawn2 = game.Lighting.SpawnLocation Spawn2.Position = 815.2, 434.6, -207.4 Spawn2Clone = Spawn2:clone() Spawn2Clone.Parent = Workspace game.StarterPack.Swordlol:remove() game.Workspace.MapByHandsomebob10:remove() game.Lighting.FogEnd = 100000,000 end
☣ ~ You better make it quick! Or I will rip off your head... ~ ☣ |
|
|
| Report Abuse |
|
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
|
| 20 Apr 2014 04:36 AM |
| 3 ends for the functions. Not at the while loop. |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2014 04:38 AM |
If it works I will give you a pot of gold but! you have to follow the end of the rainbow...
☣ ~ You better make it quick! Or I will rip off your head... ~ ☣ |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2014 04:39 AM |
Things that need end:
if .. do end
for .. do end
function ..() end
while .. do end |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2014 04:40 AM |
Thx! YOUR AWESOME!
☣ ~ You better make it quick! Or I will rip off your head... ~ ☣ |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2014 04:46 AM |
Oh god... It's something wrong with my choose functions.
I want them to choose a guy then make them in a team then kill them...
But if there must be 5 ppl
☣ ~ You better make it quick! Or I will rip off your head... ~ ☣ |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Apr 2014 05:00 AM |
How to fix this now...
☣ ~ You better make it quick! Or I will rip off your head... ~ ☣ |
|
|
| Report Abuse |
|
|