|
| 03 Aug 2014 06:21 PM |
can I have multiple while true do's in one script?
Or will it only read one of them
(Local script) |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 03 Aug 2014 06:23 PM |
You can use coroutines to have multiple.
http://wiki.roblox.com/index.php?title=Beginners_Guide_to_Coroutines |
|
|
| Report Abuse |
|
|
plistra
|
  |
| Joined: 12 Mar 2014 |
| Total Posts: 859 |
|
|
| 03 Aug 2014 06:23 PM |
It will only read one until it stops looping(which it wont), then it will move on.
Just have multiple scripts or something. |
|
|
| Report Abuse |
|
|
Stefan631
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1350 |
|
|
| 03 Aug 2014 06:23 PM |
You can with coroutines!
coroutine.resume(coroutine.create(function() while wait() do
end; end));
coroutine.resume(coroutine.create(function() while wait() do
end; end));
|
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Aug 2014 06:24 PM |
It depends. If you ever break the loop it will continue the script and if there happens to be another loop, that will run. |
|
|
| Report Abuse |
|
|