|
| 13 Apr 2015 08:40 PM |
while true do wait() game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0 game.Players.LocalPlayer:LoadCharacter() script.Parent.Text = "Game starting in 10.." wait(1) script.Parent.Text = "Game starting in 9.." wait(1) script.Parent.Text = "Game starting in 8.." wait(1) script.Parent.Text = "Game starting in 7.." wait(1) script.Parent.Text = "Game starting in 6.." wait(1) script.Parent.Text = "Game starting in 5.." wait(1) script.Parent.Text = "Game starting in 4.." wait(1) script.Parent.Text = "Game starting in 3.." wait(1) script.Parent.Text = "Game starting in 2.." wait(1) script.Parent.Text = "Game starting in 1.." wait(1) script.Parent.Text = "Begin!" game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 wait(10) end
why is it keep respawning me? it is supposed to respawn me one time then continue on with the script, then restart again. but for some reason it keeps respawning me. pls help. thx. |
|
|
| Report Abuse |
|
|
|
| 13 Apr 2015 08:47 PM |
| Correct title would be "While loop help" |
|
|
| Report Abuse |
|
|
| |
|
Ruzakiff
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 155 |
|
|
| 13 Apr 2015 08:48 PM |
Y U NO USE FOR LOOPS!!!
while wait() do game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0 game.Players.LocalPlayer:LoadCharacter() for c=10,1,-1 do script.Parent.Text="Game starting in "..c wait(1) end script.Parent.Text = "Begin!" game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 wait(10) end
Do you see how much shorted that is?!
-Herp De Derp De Freaking Derp |
|
|
| Report Abuse |
|
|
|
| 13 Apr 2015 08:48 PM |
| Why not use a for loop faster and better way to do this. |
|
|
| Report Abuse |
|
|
|
| 13 Apr 2015 09:05 PM |
| still spams the crap out of load character ^^ |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 13 Apr 2015 09:35 PM |
| Put the while loop under game.Players.LocalPlayer:LoadCharacter() |
|
|
| Report Abuse |
|
|
|
| 13 Apr 2015 09:35 PM |
| Also put game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0 underneath while loop |
|
|
| Report Abuse |
|
|
ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 13 Apr 2015 09:38 PM |
while wait(10) do game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0 game.Players.LocalPlayer:LoadCharacter() for c=10,1,-1 do script.Parent.Text="Game starting in "..c wait(1) end script.Parent.Text = "Begin!" game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 end |
|
|
| Report Abuse |
|
|