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

how to make a system that kicks players before and update or gives them a notification?

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?

6 comments

0

game.Players.(plrname):Kick("Update!") Something like that right?

0

Couldn't you just shut down all servers after an update, and post on the game feed that it was because of an update?

0

Well i would like a custom message more but if no one can help me will just use shutdown all servers yes

0

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.

0

There are a couple of good answers in that link ^

1 answer

✓ Accepted 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

0

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.