This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local bantable = { | |
[0] = "Reason"; -- Replace 0 with the banned person(s) username | |
[1] = "Reason"; | |
} | |
game.Players.PlayerAdded:Connect(function(plr) | |
if bantable[plr.UserId] then | |
plr:Kick("You have been banned from this game. Reason: "..bantable[plr.UserId]) | |
end | |
end) |