Advertisement
4zx16

Ban Usernames v2

Dec 14th, 2021 (edited)
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || BAN USERNAMES V2 || ROBLOX STUDIO
  3. ]]
  4. local Banned = {}
  5. local Allow_In_Game = true
  6.  
  7. game.Players.PlayerAdded:Connect(function(player)
  8.     for _, v in pairs(Banned) do
  9.         if player.Name == v then
  10.             if Allow_In_Game == true then
  11.                 -- Banned Members are allowed in!
  12.             elseif Allow_In_Game == false then
  13.                 -- Banned members ARE NOT allowed in!
  14.                 player:Kick("[⛏ Banned]: You cannot join this experience, you're in the ban list! (📃:USERNAME)")
  15.             end
  16.         end
  17.     end
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement