Advertisement
ZeroCool5254

Roblox Giver

Oct 24th, 2017
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. debounce = false
  2. local item = game.ServerStorage.WeaponsLocker:FindFirstChild("RocketLauncher"):clone()
  3. amnt = 5
  4.  
  5. local function onMouseClick(Player)
  6.     if Player and Player:FindFirstChild("Backpack") then
  7.         debounce = true
  8.         item:clone().Parent = Player.Backpack
  9.         script.Parent.BrickColor = BrickColor.new("Dusty Rose")
  10.         wait(amnt)
  11.         debounce = false
  12.         script.Parent.BrickColor = BrickColor.new("Medium stone grey")
  13.     end
  14. end
  15. script.parent.ClickDetector.MouseClick:connect(onMouseClick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement