Why do servers shut down very quickly?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I want to increase the time before the servers shut down for updates

  2. What is the issue? I’m trying to increase the time before the server shuts down but it doesn’t work, it turns off after 30 seconds anyway

  3. What solutions have you tried so far?
    I tried to find a solution but no one seemed to talk about it, I tried to take other scripts and redo it for myself but that doesn’t work either

Here is the script, it includes another script that should include animation and countdown before the server shuts down and then it includes another script in which there is also another animation with teleportation to another playground for updating

game:BindToClose(function(onServerShutdown)

	for i, player in pairs(game.Players:GetPlayers()) do

		player.PlayerGui.UpdateGui.UpdateFrame.startscript.Enabled = true
	end
	task.wait(400)
end)

I need to increase the time so that it is more than 5 minutes before the servers are updated, If you need more information, tell me!

1 Like

BindToClose any only pause for a short amount of time. 400 seconds is WAY too long. Instead, what you should be doing is using MessagingService to tell the services to prepare to shut down. If anyone tries to join the servers that are shutting down, you would just use TeleportService to move them to a different server. After the 400 seconds, just kick anyone still in and the server will shut down

1 Like

That’s not :BindToClose() purpose, that’s more to give time to servers to save stuff when the last player has left