for i = 1, 30 do
	wait(1)
	if game.Players.NumPlayers < 2 then
		break
	end
end
if game.Players.NumPlayers < 2 then
	while true do
		if game.Players.NumPlayers > 1 then
			break
		end
		wait()
	end	
end

I'm making a script for my fighting game. And it is supposed to run a 30 second intermission. But if there is only one player left, it waits for a new player then restarts the intermission timer.