Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tool = script.Parent
- local click = tool.Main.ClickDetector
- local ServerStorage = game:GetService('ServerStorage')
- local toolsFolder = ServerStorage:WaitForChild('Tools')
- local function giveTool(player)
- local newTool = toolsFolder[tool.Name]:Clone()
- newTool.Handle.Anchored = false
- newTool.Parent = player.Backpack
- end
- click.MouseClick:Connect(giveTool)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement