how can i change this destroy script so it only destroys for the person who touched it?
here is the script that makes the block destroy and it also gives the player who touches it money
02 | script.Parent.Touched:Connect( function (hit) |
03 | if hit.Parent:FindFirstChild( "Humanoid" ) ~ = nil then |
06 | script.Parent.Transparency = 1 |
07 | local player = game.Players:GetPlayerFromCharacter(hit.Parent) |
08 | player.leaderstats.PowerBlocks.Value = player.leaderstats.PowerBlocks.Value + 1 |
i need to make it so it only disappears for the person who touched it
thanks