Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local groupId = 3256759
- local ToolGive = Instance.new("RemoteEvent", game.ReplicatedStorage)
- ToolGive.Name = "GivePlayerTools"
- function giveTools(plr, toolFolder, givePlayer)
- print("Fired")
- if plr:GetRankInGroup(groupId) > -1 then
- print("Giving tools")
- local tools = toolFolder:GetChildren()
- for _, tool in pairs (tools) do
- tool.Parent = givePlayer.Backpack
- print("Given "..tool.Name)
- end
- toolFolder:Destroy()
- end
- end
- ToolGive.OnServerEvent:Connect(giveTools)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement