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

3 comments
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
could you tell me what exactly you are trying to do
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