So this is what I've got and it isn't working, but it works in a click detector only for some reason?
while true do
players = game.Players:GetPlayers()
players = game.Players:GetChildren()
if #players >= 2 then
print("Working")
wait(5)
end
end
I want it to print the message when the game has 2 or more players.

2 comments
Is there any errors?
It should error that script exhaustion time because you only put wait(5) in the if statement, that way if there is less than 2 players it will repeat the loop with speed of light and crash it.