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: How to stop a coroutine.resume once it's already running?

Previous Thread :: Next Thread 
BatRequiem is not online. BatRequiem
Joined: 04 Jun 2011
Total Posts: 6207
08 Dec 2013 03:02 PM
I would like to know how

~God Bless~ Twitter - @Batpower54
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
08 Dec 2013 03:02 PM
coroutine.yield() or something.
Report Abuse
rny is not online. rny
Joined: 26 Jul 2009
Total Posts: 5079
08 Dec 2013 03:02 PM
break
Report Abuse
Nyxis is not online. 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
BatRequiem is not online. BatRequiem
Joined: 04 Jun 2011
Total Posts: 6207
08 Dec 2013 03:09 PM
Yeah I tried yield and it didn't work

~God Bless~ Twitter - @Batpower54
Report Abuse
wazap is not online. 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 is not online. 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
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