How to make a user be banned for a certain amount of time

I’ve looked at different forums with similar questions but still can’t figure it out.

In the picture, IsBanned is a value in the player that is saved along with its children. The player will be kicked if it is True with the reason and how many days are left. TimeDays is how long the player was banned for in days. I don’t know how to make the script know when your ban has expired so it can reset the values.
image

Just use the native ban API

Yo how did I never know this existed, I’ve been doing it the hard way for so long.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.