Money for destroying parts with a bomb?

The thing is, the explosion script is in a script that clones to the ticking bomb that’s in workspace, so I cant really do that.

I assume this to be the bomb creator? If so, you have the player - you just need to check the Value for the creator.

explosion.Hit:connect(function(part, distance) 
    onPlayerBlownUp(part, distance, creator)
    if creator.Value ~= nil then
    local money = creator.Value:FindFirstChild("Money", true)
        if money ~= nil then
            money.Value += 5
        end
    end
end)
2 Likes