Advertisement
vendaskOfficial

ItemShopBrick

Dec 15th, 2018
2,946
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local debounce = false
  2.  
  3. script.Parent.Touched:Connect(function(hit)
  4.     if debounce then
  5.         return
  6.     end
  7.     debounce = true
  8.     local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  9.     if player.leaderstats.Cash.Value >= 500 then
  10.         local item = game.Lighting:FindFirstChild("ClassicTrowel")
  11.         local l = item:Clone()
  12.         l.Parent = player.Backpack
  13.         player.leaderstats.Cash.Value = player.leaderstats.Cash.Value - 500
  14.     end
  15.     wait(1)
  16.     debounce = false
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement