I am Trying To Figure out How This Would Work And Have Tried Multiple Methods But nothing Works
If you wanna know when the server shutdown, u gotta use game.BindToClose. Here's an example that teleports everybody to a new server.
1 | local TeleportService = game:GetService( "TeleportService" ) |
2 | local Players = game:GetService( "Players" ) |
3 |
4 | game:BindToClose( function () -- Detect when the server shutdown |
5 | wait( 2 ) |
6 | for i,v in pairs (Players:GetPlayers()) do |
7 | TeleportService:Teleport(game.PlaceId,v) |
8 | end |
9 | 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.