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

How do you shut every server down automatically after an update?

I don't have the slightest clue on how to do this. What I'm imagining is what mad games used to do when loleris still put effort into it. For those of you who don't know what happened after he updated that game, it basically put a timer for 5 minutes telling everyone to rejoin the game, or the server will shut itself down when the timer reaches 0. This amazed me because I didn't know that studio could somehow communicate with a server that was using an outdated version of that game. At first I thought you would have to change a variable, but then I realized that the variable wouldn't change until the server reset.

2 comments

1

Could probably be doing occasional checks of MarketplaceService to see if the Updated string changes. Although, I think that Mad Studios had their own website they could push information through like that. local Info = game:GetService("MarketplaceService"):GetProductInfo(26838733, Enum.InfoType.Asset) print(Info.Updated)

1

https://scriptinghelpers.org/questions/67559/saving-limited-items-in-datastores That's how I shutdown servers in my game (with shutdown message)

1 answer

✓ Accepted answer

i would imagine that you use a datastore, and every minute or so a script in the game would detetct if the current version stored in a datastore is different than the one stored in some value in the server, if there is a difference, shut the server down, presumably by kicking all players since a server with no players is shutdown automatically

This discussion is preserved as it was. New answers, comments, and votes are closed.