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: for loops

Previous Thread :: Next Thread 
ComradeREKTangle is not online. ComradeREKTangle
Joined: 07 Feb 2010
Total Posts: 850
11 May 2016 08:42 PM
how would i stop a loop while its running?


for i = 60,5,-1 do
blah blah blah
wait(1)

end

how would i stop it?
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
11 May 2016 08:42 PM
break
Report Abuse
GamerGeorge101 is not online. GamerGeorge101
Joined: 20 Jul 2012
Total Posts: 3582
11 May 2016 08:43 PM
you need to set it, pretty simple you add wait(number) and blah blah blah to end the thing. just add wait()


Report Abuse
ComradeREKTangle is not online. ComradeREKTangle
Joined: 07 Feb 2010
Total Posts: 850
11 May 2016 08:46 PM
can i have an example?

how would i use the break to stop it?
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
11 May 2016 08:48 PM
for i = 60,5,-1 do
multiply gnomes
wait(1)
if gnomes go out of style then
break
end
end
the script would break when gnomes go out of style

effectively never


Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
11 May 2016 08:48 PM
would break out of the loop****


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