Im trying to make a shutdown script where when i want to release a new update it waits 15 seconds then teleports them to a waiting server then teleports them back once everyone has been teleported and the updates are in. But for some reason it does not teleport the players.. Any help would be greatly appreciated!
game.OnClose = function() game.ReplicatedStorage.RandomValues.ShutingDown.Value = true wait(15) for _,v in pairs(game.Players:GetPlayers()) do game:GetService("TeleportService"):Teleport(741142396, v) end wait(12) end