Already explained in the title; how should I go about implementing a ban reason? I already have the banning part done, here’s my code so far:
function module:BanUser(plrId)
local plr = game.Players:GetPlayerByUserId(plrId)
if plr then
DataStore:SetAsync(plrId.."-ban", true)
plr:Kick("\n n You have been permanently banned by an administrator.")
print("Player is in-game. They will be kicked from the server and globally banned.")
else
warn("Player is not in-game ["..plrId.."]. They will still be banned.")
DataStore:SetAsync(plrId.."-ban", true)
end
end
I’m looking for something like this:
