local players = game.Players:GetPlayers()
local _G players = {}
while true do
wait(1)
for i,v in pairs(players) do
table.insert(_G.players,v)
end
wait(1)
print("hi")
wait(1)
print("yo")
wait(1)
if _G.Players == 0 then
break
end
end
I am struggling to think of a way that I can check every second if the numbers of players is == 0 and it would make it break out of the while true do to give the winner names and other stuff. I cant get a clue on how to do it. Any help?

3 comments
How would I check it every second though?
how do you do anything every second?
while wait(1) do -- this stuff happens over and over with one second pauses end