I wondered if i can adjust default roblox explosion only to break some certain welds , by modifying the weld somehow, although i only found the Explosion.DestroyJointRadiusPercent variable, but how to make resistant welds?
1 Like
You could script it so it only destroys welds that have a certain name.
1 Like
oh, maybe i got it, the Explosion.Hit?
1 Like
Yes, that’d be the correct path to take.
local function OnHit(HitPart, HitDistance)
if HitDistance > 10 then return end --Too far?
if HitPart.Name ~= "Part" then return end --Hit part's name doesn't match expected name.
local JointInstance = HitPart:FindFirstChildWhichIsA("JointInstance") --Base class for joint instances (includes welds).
if JointInstance then JointInstance:Destroy() end
end
1 Like