Advertisement
KashTheKingYT

Tool giver

Jul 3rd, 2022
1,034
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None
  1. --Updated Script
  2. local ss = game:GetService("ServerStorage")
  3. local clickObject = script.Parent
  4. local cd = clickObject:WaitForChild("ClickDetector")
  5. local tool = ss:FindFirstChild("Money")
  6.  
  7. cd.MouseClick:Connect(function(player)
  8.     local newTool = tool:Clone()
  9.     newTool.Parent = game.Workspace
  10.     newTool:MoveTo(clickObject.Position)
  11. end)
Advertisement
RAW Paste Data Copied
Advertisement