4zx16

Group Only Items

Oct 28th, 2021
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || GROUP ITEMS || ONLY MESS WITH GROUP ITEMS FOLDER AND LOCAL GROUPS!
  3. ]]
  4.  
  5. local groups = {} -- Groups to get ur items
  6. local ServerStorage = game.ServerStorage
  7.  
  8. game.Players.PlayerAdded:Connect(function(plr)
  9.     plr.CharacterAdded:Connect(function()
  10.        
  11.         for _, h in pairs(groups) do
  12.             if plr:IsInGroup(h) then
  13.                 for _, v in pairs(ServerStorage.GroupItems:GetChildren()) do
  14.                     wait(1)
  15.                     v:Clone().Parent = plr.Backpack
  16.                 end
  17.             end
  18.         end
  19.     end)
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment