ServerBan is an easy-to-use module to ban any users from a server.
API
Properties
ServerBan.Config
The ServerBan configuration.
Functions
ServerBan:Banish(UserId)
Bans a player from the server.
ServerBan:Unbanish(UserId)
Unbans a player from the server.
ServerBan:IsBanned(UserId)
Returns whether or not the player is banned from the server.
ServerBan:GetList()
Returns the array of banned UserIds.
Example
local ServerBan = require(game:GetService("ServerStorage").ServerBan)
ServerBan:Banish(game:GetService("Players"):GetUserIdFromNameAsync("proxilom"))