Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by
hokyboy 270 Moderation Voter
4 years ago

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?

0
game.Players.(plrname):Kick("Update!") Something like that right? hokyboy 270 — 4y
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? NoahsRebels 99 — 4y
0
Well i would like a custom message more but if no one can help me will just use shutdown all servers yes hokyboy 270 — 4y
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. aipiox123 1 — 4y
View all comments (2 more)

1 answer

Log in to vote
0
Answered by
sheepposu 561 Moderation Voter
4 years ago

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!

0
Of course there is probably a better way than I mentioned here sheepposu 561 — 4y
Ad

Answer this question