When a explosive weapon hits brick it'll give them points
local brick = script.Parent
function onTouched(hit)
for i,player in ipairs(game.Players:GetPlayers()) do
if player.Character then
local stat = player:FindFirstChild("leaderstats")
if stat then
player.leaderstats.Money.Value = player.leaderstats.Money.Value +1
brick:Destroy()
end
end
end
end
brick.Touched:connect(onTouched)

1 comment
What do you want the output to be? What is the error? Did you check the output? You are clearly saying that when once the brick is touched, give them money.