|
| 08 Dec 2013 03:02 PM |
I would like to know how
~God Bless~ Twitter - @Batpower54 |
|
|
| Report Abuse |
|
|
Nyxis
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 08 Dec 2013 03:02 PM |
| coroutine.yield() or something. |
|
|
| Report Abuse |
|
|
rny
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 5079 |
|
| |
|
Nyxis
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 08 Dec 2013 03:03 PM |
| http://wiki.roblox.com/index.php/Coroutine#coroutine.yield |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 03:09 PM |
Yeah I tried yield and it didn't work
~God Bless~ Twitter - @Batpower54 |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Dec 2013 03:16 PM |
Since its a function, wouldnt return do it?
Say have a variable... stopCoroutine = false
And in code outside the script
if somethingundesirablehappens then stopCoroutine = true end
And in the coroutine
if stopCoroutine then return end
|
|
|
| Report Abuse |
|
|
FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
|
| 08 Dec 2013 03:17 PM |
This works for me:
coroutine.yield(NAME OF COROUTINE) |
|
|
| Report Abuse |
|
|