Is A Non-Breakable Weld Possible?

Is it possible to create a weld that does not break upon the character dying?

For example, I have a custom character model in which the eyes are welded to the head. When the character dies, I do not want the eyes to detach from the head.

1 Like

You can use HingeConstraints with Min/Max angle set to 0 to get something similar, but note that:

  • It doesn’t force the angle to 0 (there is a slight amount of leeway, albeit not very noticeable)
  • This can cause instability with physics (my ragdolls randomly explode because of this hack)

I would recommend doing something like:

onPlayerDied():
    setStateEnabled("Dead", false)
    reweld()

Reweld can be as simple as character:MakeJoints() if you only use the default character joint system (i.e. jointNameRigAttachment in Part0, jointNameRigAttachment in Part1), but if you use welds and not attachments for anything, you’ll need to manually re-weld those components.

1 Like