Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Players not being teleported when all servers shutdown?

Asked by 6 years ago

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
0
OnClose seems to be deprecated. Have you tried using BindToClose instead? http://wiki.roblox.com/index.php?title=API:Class/DataModel/BindToClose XAXA 1569 — 6y
0
i've tryed that aswell and it does not work sadly. outlook1234567890 115 — 6y

Answer this question