How do I do that? This is my script:
local battle = true
local players = {
"Player1",
"Player2"
}
coroutine.wrap(function()
wait(180)
battle = false
end
coroutine.wrap(function()
repeat wait() until #players <= 1
battle = false
end
repeat wait() until battle == false
print("Game Over!")
I want the game to end if there are 1 or less players or if the time runs out. How do I do that?