Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ToolNames = {"Item", "Item", "Item"} --Put any item you want
- local Storage = game:GetService("ServerStorage") -- put the item in serverstorage
- local Part = script.Parent
- local ClickDetector = Part:WaitForChild("ClickDetector")
- ClickDetector.MouseClick:connect(function(Player)
- if Player and Player.Character then
- local Backpack = Player:WaitForChild("Backpack")
- for i = 1, #ToolNames do
- local Tool = Storage:FindFirstChild(ToolNames[i])
- if Tool then
- Tool:clone().Parent = Backpack
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement