Use the Explosion.Hit event to detect when the explosion hits a part, then check if the part should be deleted.
local explosion = --Path to explosion
explosion.Hit:Connect(function(hitPart,distance)
if(--[[Part should be destroyed]]) then
hitPart:Destroy()
end
end)
If you’re instantiating an Explosion then all you have to do is store it as a variable.
local explosion = Instance.new("Explosion")
explosion.Hit:Connect(function(hitPart,distance)
if(--[[Part should be destroyed]]) then
hitPart:Destroy()
end
end)