here is the script that makes the block destroy and it also gives the player who touches it money
local db = true
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil then
if db == true then
db = false
script.Parent.Transparency = 1
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
player.leaderstats.PowerBlocks.Value = player.leaderstats.PowerBlocks.Value + 1
end
end
end)
i need to make it so it only disappears for the person who touched it
thanks

2 comments
if this is a server script, then you'd need to use remote events for the client to destroy the brick
TouchEnded