Advertisement
OnFireRobloxScriptin

Click to Pick Up Tool

Nov 9th, 2023
3,140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local tool = script.Parent --Variable for the tool
  2. local click = tool.ClickDetector --Variable for the clickdetector
  3.  
  4. click.MouseClick:Connect(function(player) --When the player clicks on the clickdetector
  5.     tool.Parent = player.Backpack --Put the tool into the inventory (Backpack)
  6. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement