while true do
	wait(1)
	print(coroutine.status(NewRoundThread))
	if coroutine.status(NewRoundThread) ~= "suspended" then
		coroutine.resume(NewRoundThread)
	end
	
end

Only returns it's state, when it returns prints busy, it still doesn't resume

6 comments

0

Did you mean to put "if coroutine.status(NewRoundThread) == "suspended" then"

0

i was meaning to put if it is not suspended, it say's suspended when the coroutine is active. when its not active it says dead.

0

You can't resume a thread that's already going.

0

So a thread has to manually be stopped? I thought it ran the lines, then killed the thread...

0

coroutine.create() creates a brand new thread from a function and returns a coroutine object. You can then transfer control to this thread using coroutine.resume(co), passing the coroutine object as first argument. The thread will die if it errors or upon reaching the end of the function's body, and can be suspended upon a call to coroutine.yield(). It is important to note, however, that Lua

0

okay, thank you for actually explaining, i finally understand... Thanks alot.