I am Trying To Figure out How This Would Work And Have Tried Multiple Methods But nothing Works
✓ ANSWER ACCEPTED
How To Detect If The Game Is Updating And Kick All Players?
3 answers
✓ Accepted answer
If you wanna know when the server shutdown, u gotta use game.BindToClose. Here's an example that teleports everybody to a new server.
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
game:BindToClose(function() -- Detect when the server shutdown
wait(2)
for i,v in pairs(Players:GetPlayers()) do
TeleportService:Teleport(game.PlaceId,v)
end
end)
You can just use the shut down all servers feature, it'll kick all players and therefore update all servers
There is a system called "Softban". i don't know whether if you have heard of it but you can search the marketplace or google a script like that and parent it to the ServerScriptService.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
noice
Yeah But How Would I detect When It Updates So That Would Happen