4zx16

Item On Click

Jul 17th, 2021 (edited)
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2.  
  3. local ItemToGive = game.ReplicatedStorage.BoomBox
  4.  
  5. local function HandItem()
  6.     ItemToGive:Clone().Parent = Player.Backpack
  7. end
  8.  
  9. script.Parent.MouseButton1Click:Connect(function()
  10.     HandItem()
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment