game:BindToClose(function() local players = PlayerService:GetPlayers() for i,v in pairs(players) do print(v.Name) end wait(5) end)
No errors nothing, nothing in the output.
It will not print if you are in Roblox Studio, only will print or run on a Server because "BindToClose" will run before the game shut down.