Advertisement
4zx16

Ban Groups List V3 + ANTI BACKDOOR SUPPORT

Jun 24th, 2022 (edited)
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | Source Code | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || BAN GROUPS LIST V3,
  3.  || 🚀 Modify the communties using "Removed" within the ban list
  4. ]]
  5. local Lua_Shortcuts = {
  6.     PlayerService = game:GetService("Players");
  7.     DefaultMessage = "Your community has been banned";
  8.     BackdoorMessage = "Your community was detected as a backdoor, that's not permitted"
  9. }
  10. local Removed = {
  11.     Banned = {14460778};
  12.     Backdoors = {9821767, 14982278}
  13. }
  14. local function Checking_Groups(player)
  15.     for index, value in pairs(Removed.Banned) do
  16.  
  17.         if player:IsInGroup(value) then
  18.             player:Kick(Lua_Shortcuts.DefaultMessage)
  19.         end
  20.     end
  21.     for _, v in pairs(Removed.Backdoors) do
  22.        
  23.         if player:IsInGroup(v) then
  24.             player:Kick(Lua_Shortcuts.BackdoorMessage)
  25.         end
  26.     end
  27. end
  28. game.Players.PlayerAdded:Connect(Checking_Groups)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement