Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How To Detect If The Game Is Updating And Kick All Players?

I am Trying To Figure out How This Would Work And Have Tried Multiple Methods But nothing Works

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

2 comments

0

noice

0

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

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.