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
1 | repeat wait() until coroutine.status(Event 1 ) = = "dead" and coroutine.status(Event 2 ) = = "dead" |
I'm new to using this coroutine thing so I wonder if there's a better alternative
You will have to make sure you created the coroutine first