|
[Not copying anyone else]
coroutine.yield(ABC) should do the trick.
Else, just destroy it. |
|
nate890Join Date: 2008-11-22 Post Count: 21686 |
"Else just destroy it"
And yet I'll repeat myself again, you cannot stop code from executing by removing a script. |
|
EverestyJoin Date: 2009-10-08 Post Count: 6156 |
Nate is correct. Destroy and remove set the parent nil. If a script is in nil, it still runs. I suggest Disabling the script with a different script, if that would work.
`*\~-{ Are we there yet T.T? }-~/*` |
|
nate890Join Date: 2008-11-22 Post Count: 21686 |
Disabling doesn't even work, either. |
|
|
Agh, coroutine.yield will NOT work in this case!
And I can't remove the script; it's a plugin. It's stealing the Source from scripts and executing it. |
|
FlyScriptJoin Date: 2010-08-05 Post Count: 3008 |
I know it isn't always, but if you did in this case, it would be easy to shut down. |
|
aboy5643Join Date: 2010-10-08 Post Count: 5458 |
What if you did ABC = nil?? Would that yield the thread because you removed the function definiton?? Or is it statically run?? |
|
FlyScriptJoin Date: 2010-08-05 Post Count: 3008 |
You could always ask the creator of the actual plugin. It's functions might be locked or something, there are orbs and stuff, when you try to delete them in studio mode they keep reappearing, I'd suggest asking the creator, or opening studio with a code-time browser, where you can see all the scripts that are going and edit them. Roblox is against them, because they can be used to hack, but if you just use it to veiw the plugin and maybe edit it slightly to find out another way to halt it, that would not bhe so bad. |
|
|
There is no actual way to stop a coroutine from running externally. It will be run until coroutine.yield is called on it, which will not happen until the coroutine is finished running (because it's outside of the coroutine itself). So, what you can do is either:
Impossible
Useless
I believe. Let me know if I'm wrong :D |
|
|
"It will be run until coroutine.yield is called on it, which will not happen until the coroutine is finished running (because it's outside of the coroutine itself)"
Slight clarification:
That will not happen *externally* until the coroutine has yielded itself. |
|
smurf279Join Date: 2010-03-15 Post Count: 6871 |
This looks like a nice little challenge. Maybe when I finish my project (Almost done :D) |
|
nate890Join Date: 2008-11-22 Post Count: 21686 |
It's impossible to suspend a coroutine outside of a coroutine. Attempting it would just be a waste of time. |
|
smurf279Join Date: 2010-03-15 Post Count: 6871 |
"It's impossible to suspend a coroutine outside of a coroutine. Attempting it would just be a waste of time."
Who says I'm thinking of doing it from outside? |
|
|
Well I was the one trying to do it from the outside.
If there's no way, then I'll leave it there. Thanks all for helping me work through this :P |
|
VoidacityJoin Date: 2009-11-05 Post Count: 15759 |
[ Content Deleted ] |
|
VoidacityJoin Date: 2009-11-05 Post Count: 15759 |
[ Content Deleted ] |
|