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
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
| |
|
|
| 30 Mar 2015 10:42 AM |
| http://wiki.roblox.com/index.php?title=Function_dump/Coroutine_manipulation |
|
|
| Report Abuse |
|
|
TheMesgi
|
  |
| Joined: 03 Mar 2012 |
| Total Posts: 360 |
|
|
| 31 Mar 2015 10:35 AM |
| They only work once now though |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2015 10:35 AM |
| Use spawn() or delay(), don't bother with coroutines. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 31 Mar 2015 10:39 AM |
| What's the difference between spawn and coroutine? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|