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
 

Re: Is there a way to break a for loop early?

Previous Thread :: Next Thread 
HomingBeacon is not online. HomingBeacon
Joined: 08 Apr 2013
Total Posts: 4895
09 Aug 2013 09:28 PM
By break, I just mean any way to get out of a for loop before it's supposed to end?
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
09 Aug 2013 09:29 PM
Use break.

Got a problem with me? Take it up with my butt because it's the only one that gives a crap.
Report Abuse
bohdan77 is not online. bohdan77
Joined: 10 Aug 2008
Total Posts: 7944
09 Aug 2013 09:29 PM
Use break.
Report Abuse
Misplace is not online. Misplace
Joined: 17 Aug 2011
Total Posts: 5556
09 Aug 2013 09:29 PM
Yup.

a = 1
while true do
print("your welcome ;p")
a=a+1
if a>50 then
break
end
end

☓~MP~☓
Report Abuse
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
09 Aug 2013 09:29 PM
for i = 1, 10 do
if i == 5 then
break
end
print(i)
end
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
09 Aug 2013 09:44 PM
It's funny because your answer was in your question.
Next time, just type out the question in the editor! Lol! :D
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
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