Advertisement
KodingKid

How to ban players on your Roblox game

Apr 22nd, 2021
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. local banlist = {ID, ID, ID}
  2. game.Players.PlayerAdded:Connect(function(plr)
  3.     for i,v in pairs(banlist) do
  4.         if plr.UserId == v then
  5.             plr:Kick("You are banned from this game!")
  6.         end
  7.     end
  8. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement