So i want to make something when the game has an update a custom kick message comes in and i can triggerd the command or when the version of the game updates Where would i even start to script this because i really dont know i would love to know i know you would have to work with game.players right?
how to make a system that kicks players before and update or gives them a notification?
1 answer
When an update is pushed Roblox will automatically shutdown all the servers. The only solution i see is to decide on a time and date to update. Set it up so the server will say will say shutting down in 5 minutes when there are 5 minutes remaining. Then when the 5 minutes are up the server will shut itself down, (this will take effect on every server). Have it so if it is only a minute after or less, the server will shutdown (This is for the people who will try and join the game again right after it has shutdown for an update). This will give you enough time to do the update. After a minute has passed, the servers will run normally. Don't forgot to add a update time and date to the updated version as well. Hope this helps!
1 comment
Of course there is probably a better way than I mentioned here
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
game.Players.(plrname):Kick("Update!") Something like that right?
Couldn't you just shut down all servers after an update, and post on the game feed that it was because of an update?
Well i would like a custom message more but if no one can help me will just use shutdown all servers yes
I suggest using Datastores to save the version and using the OnUpdate event to check if the current version is different, if it is shutdown the server otherwise don't do anything.
https://scriptinghelpers.org/questions/71376/how-do-you-shut-every-server-down-automatically-after-an-update
There are a couple of good answers in that link ^