Server Maintenance Restart Notifications
Key Takeaways
Notifications are now sent to servers for Roblox server maintenance restarts. Hook into the existing ServerRestartScheduled event to notify players to save progress or teleport them to stable servers before scheduled closures.
Hi Creators,
The ServerRestartScheduled event is now also invoked for server restarts scheduled for Roblox infrastructure maintenance. We know how frustrating it is for players to suddenly lose their progress in games for reasons outside of your control.
Now, when Roblox needs to shutdown servers, the game server will fire the ServerRestartScheduled event, using the same API that we introduced for Creator initiated restarts. Before the server closes, you can prompt players to save their progress, teleport them to new servers, or run any other custom logic.
The ServerRestartScheduled event arguments remain the same as before, but the fields will be populated differently for server maintenance restarts:
Argument
Type
Description
RestartTime
DateTime
The earliest time the external shutdown is scheduled to occur. This will usually be scheduled for 30 minutes after the server receives the notification
Source
Enum.CloseReason
For server maintenance restarts, this will always be RobloxMaintenance.
Attributes
Dictionary
This will be an empty dictionary for Roblox initiated restarts.
How to Get Started:
To hook up your game to server maintenance restart notifications, attach a callback to game.ServerRestartScheduled inside a server side script. You can hook into both the RobloxMaintenance and DeveloperUpdate sources in the same callback.
game.ServerRestartScheduled:Connect(function(restartTime, source, attributes)
if source == Enum.CloseReason.RobloxMaintenance then
if roundEndTime < restartTime then
-- Teleporting players to the place will take them to a stable server.
teleportAfterCurrentRound = true
else
notifyPlayers("Please…