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 » Scripters
Home Search
 

Re: while true do help

Previous Thread :: Next Thread 
coolrichthealt is not online. coolrichthealt
Joined: 16 Jan 2014
Total Posts: 2111
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
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
13 Apr 2015 08:47 PM
Correct title would be "While loop help"
Report Abuse
coolrichthealt is not online. coolrichthealt
Joined: 16 Jan 2014
Total Posts: 2111
13 Apr 2015 08:47 PM
?
Report Abuse
Ruzakiff is not online. 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
ReverseUniverse is not online. ReverseUniverse
Joined: 23 Jan 2015
Total Posts: 1118
13 Apr 2015 08:48 PM
Why not use a for loop faster and better way to do this.
Report Abuse
coolrichthealt is not online. coolrichthealt
Joined: 16 Jan 2014
Total Posts: 2111
13 Apr 2015 09:05 PM
still spams the crap out of load character ^^
Report Abuse
coolrichthealt is not online. coolrichthealt
Joined: 16 Jan 2014
Total Posts: 2111
13 Apr 2015 09:17 PM
bump
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
13 Apr 2015 09:22 PM
remove the while loop?
Report Abuse
Npokemonmaster2 is not online. Npokemonmaster2
Joined: 24 Oct 2012
Total Posts: 24
13 Apr 2015 09:35 PM
Put the while loop under game.Players.LocalPlayer:LoadCharacter()
Report Abuse
Npokemonmaster2 is not online. Npokemonmaster2
Joined: 24 Oct 2012
Total Posts: 24
13 Apr 2015 09:35 PM
Also put game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0 underneath while loop
Report Abuse
ash877 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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