4zx16

Group Only Experience

Oct 24th, 2021 (edited)
157
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 || WHITELISTED GROUP EXPERIENCE || PUT ALLOWED GROUP IDs TO ENTER YOUR EXPERIENCE.
  3. ]]
  4. local GroupId = {0, 44}
  5.  
  6. game.Players.PlayerAdded:Connect(function(player)
  7.  
  8.     for _, AllowedGroups in pairs(GroupId) do
  9.  
  10.         if player:IsInGroup(AllowedGroups) then
  11.             wait(1)
  12.             print("Player is in one of ID ".. AllowedGroups)
  13.         else
  14.             print("Player is not in one of ID")
  15.             wait(1)
  16.             player:Kick("Invalid enterance.")
  17.         end
  18.     end
  19. end)
Add Comment
Please, Sign In to add comment