Advertisement
4zx16

Ban Groups v2

Dec 14th, 2021 (edited)
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || BAN GROUPS 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:IsInGroup(v) then
  10.             if Allow_In_Game == true then
  11.                 -- Banned Members allowed in game!
  12.             elseif Allow_In_Game == false then
  13.                 -- Banned Members ARE NOT allowed in game!
  14.                 player:Kick("[⛏ Banned]: You cannot join this experience, the community your in isn't liked here! (🎮:GROUP)")
  15.             end
  16.         end
  17.     end
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement