This is what I have:
--drgigabyte
local debounce = false
script.Parent.Touched:Connect(function(hit)
if not debounce then
debounce = true
local plr = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
if plr then
plr.leaderstats.Money.Value = plr.leaderstats.Money.Value + 10
local holders = {plr:FindFirstChild("Backpack"), plr:FindFirstChild("StarterGear"), hit.Parent}
for i,v in pairs(holders) do
pcall(function()
for i,v in pairs(v:GetChildren()) do
if v:IsA("BackpackItem") then
v:Destroy()
end
end
end)
end
end
debounce = false
end
end)
However every time someone steps on the brick it gives you money even if you don't have any tools.
