So i'm trying to make a script where admins get a gui, they open it and they can choose to ban a player. I'm trying to make a list of options the admin can choose for how long the player gets banned (like 1 day 1 week 1 moth or a perm ban) but i'm not sure how to make one that ban a player for a limited time, i'm not sure how to make it so there banned on all servers on the game instead of just one of the many servers in a game. one last thing is i'm not sure how to make the bans save when i update the game from studio :/ i know this would be a lot of work to explain but if you could, it would be awesome and much appreciated! Thank you!!!
COMMUNITY QUESTION
How would you make a ban script where admins can choose from a limited time ban to perm ban?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
try using BannedUntil = tick() + TimeInSeconds and then wait until tick() is higher than BannedUntil.
how would you make it so that anything the admin click on in the game(like what time the choose for the ban) to save in studio when there is a update?
huh? can you say that question again?
okay so basically i want to make it so that when the admin chooses the option for how many days the player gets banned, it saves to studio, that way when the game updates the ban doesn't get lost.