Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a joint not to break if there is an explosion nearby?

I would like to know if there is a way to make a joint not to be broke by an explosion. I would like to do this for a mannequin because my games contains mannequins and explosions and I do not want the mannequins to break apart, but I do want the NPCs to break apart.

I really never investigated much into ROBLOX physics and have no idea about this.

PD: Nope, not Anchoring parts because otherwise another function breaks.

3 comments

0

I don't know if this will work, but try to anchor the things you do not want to break and weld/unanchor the things you do want to break. But I don't know about joints, sorry!

0

Give the explosions a pressure of 0, and put a script in what you do want to break apart which binds a joint breaking function to a "hit by explosion" event.

0

If I receive no answers, guess I'll try that, fredfishy

1 answer

An Explosion item has it's own properties too you know? You can simply make the explosion harmless if it's for an effect if it's not for an effect and in fact, is to deal damage then you could overlap the explosion with a hitbox to detect Touch.

To make a harmless Explosion:

local E = Instance.new('Explosion')
E.BlastPressure = 0
E.BlastRadius = 0
E.DestroyJointRadiusPercent = 0 -- this is what you probbaly are lookin for
E.Parent = game.Workspace

Hopefully, this helped! Best of luck!

3 comments

0

As I said in the question, I do not want the explosion to be harmless because I want the NPCs to break apart. SO I guess that all joints break by explosions, right? if so, I'll do a script and deal with it...

0

And by the way an explosion breaks joints and does not cause damage, so I think I'll use the Hit event in the explosion to kill or not and make the DestroyJointRadiusPercent 0.

0

Yep

This discussion is preserved as it was. New answers, comments, and votes are closed.