Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
Aimarekin 345 Moderation Voter
5 years ago
Edited 5 years ago

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.

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! Pixelated_MC 33 — 5y
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. fredfishy 833 — 5y
0
If I receive no answers, guess I'll try that, fredfishy Aimarekin 345 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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!

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... Aimarekin 345 — 5y
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. Aimarekin 345 — 5y
0
Yep BlackOrange3343 2676 — 5y
Ad

Answer this question