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: Running multiple for loops at once

Previous Thread :: Next Thread 
TheMesgi is not online. TheMesgi
Joined: 03 Mar 2012
Total Posts: 360
30 Mar 2015 10:41 AM
Im making a place and there is a lockdown button and it uses for loops to block all doors and windows, but the for loops run one then the next then the next etc. How can I make them run all at once?
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
30 Mar 2015 10:41 AM
COROUTINES!!!!!!!!
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
30 Mar 2015 10:42 AM
http://wiki.roblox.com/index.php?title=Function_dump/Coroutine_manipulation
Report Abuse
TheMesgi is not online. TheMesgi
Joined: 03 Mar 2012
Total Posts: 360
31 Mar 2015 10:35 AM
They only work once now though
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
31 Mar 2015 10:35 AM
Use spawn() or delay(), don't bother with coroutines.
Report Abuse
AlgyLacey is not online. AlgyLacey
Joined: 14 Jun 2013
Total Posts: 3736
31 Mar 2015 10:37 AM
#Spawn()FTW

{-[ Check this out! http://www.roblox.com/games/217210581/Farmulator ]-}
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
31 Mar 2015 10:39 AM
What's the difference between spawn and coroutine?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
31 Mar 2015 10:44 AM
Coroutines are more complicated, you can pass arguments, and you can yield and resume them. I've also heard that coroutines are a little more precise timing-wise, but that would very rarely be needed.
Report Abuse
TheMesgi is not online. TheMesgi
Joined: 03 Mar 2012
Total Posts: 360
31 Mar 2015 10:47 AM
I already made the coroutines but i need to know how to run them more than once
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
31 Mar 2015 10:58 AM
Yield and Resume..
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