Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is there a better way to check if a coroutine is dead?

I have 2 coroutines running. When they are running I want to halt the script and only continue if both coroutines are dead.

Note: both coroutines have already been created and the script below works perfectly fine.

What I have is

repeat wait() until coroutine.status(Event1) == "dead" and coroutine.status(Event2) == "dead"

I'm new to using this coroutine thing so I wonder if there's a better alternative

1 answer

You will have to make sure you created the coroutine first

3 comments

0

I did, and the script above works just fine, just wondering if there's a better way of doing it cuz i'm new to this coroutine stuff

0

could you tell me what exactly you are trying to do

0

i know you are checking to see if both of the running coroutines are dead but i want to know what exacly you are trying to do

This discussion is preserved as it was. New answers, comments, and votes are closed.