Advertisement
Pastebinnercopies

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Jan 18th, 2018
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. local groupId = 3256759
  2. local ToolGive = Instance.new("RemoteEvent", game.ReplicatedStorage)
  3. ToolGive.Name = "GivePlayerTools"
  4.  
  5. function giveTools(plr, toolFolder, givePlayer)
  6. print("Fired")
  7. if plr:GetRankInGroup(groupId) > -1 then
  8. print("Giving tools")
  9. local tools = toolFolder:GetChildren()
  10. for _, tool in pairs (tools) do
  11. tool.Parent = givePlayer.Backpack
  12. print("Given "..tool.Name)
  13. end
  14. toolFolder:Destroy()
  15. end
  16. end
  17.  
  18. ToolGive.OnServerEvent:Connect(giveTools)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement