Is there a way to stop a coroutine and then begin a coroutine from the beginning of it and not where it left off

I’m trying to make a minigame game where if the all the people die the game ends and the round and game don’t continue and a new one is created. sorry for lack of context

It would be a lot more helpful if you can send code snippets of things you’ve tried to fix this problem.

1 Like

make a while true loop and do coroutine.yield() at the end of the function you are coroutining then call the coroutine again (use coroutine.wrap())