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
Put that entire script into a local script in the part. It will also make it easier because you can use LocalPlayer aswell then.