Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local debounce = false
- script.Parent.Touched:Connect(function(hit)
- if debounce then
- return
- end
- debounce = true
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player.leaderstats.Cash.Value >= 500 then
- local item = game.Lighting:FindFirstChild("ClassicTrowel")
- local l = item:Clone()
- l.Parent = player.Backpack
- player.leaderstats.Cash.Value = player.leaderstats.Cash.Value - 500
- end
- wait(1)
- debounce = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement