Unwelding Player/Humanoid Model, so doesnt break?

I am currently making an NPC, some stuff are not welding in default, so I put WeldingScript, which welds stuff to my NPC, but when I kill him he can’t ragdoll due the welding connections. Is any way to fix this?

Without welding, my NPC breaks into pieces

1 Like

One way to do this is when the NPC dies, destroy all welds and add another form of constraint to the joints (such as BallSocketConstraint) for ragdoll.

Don’t use a weld script, use the Studio tools to weld the items to the character themselves. Weld scripts typically assume that the model you put them into is all the collection of parts you need welded. Prewelding saves you the need to create welds at run time.

Weld scripts can give you problems such as this. You could still do it but you’d have to rework the script quite a bit. By rework, I’m referring to a weld whitelist that determines what should be welded. I don’t recommend allowing the weld script to act automatically and then needing to destroy those welds again later: seems like unnecessary work.

The weld tool is under the Constraints section in the Models tab of your tools topbar. Select two or more parts to begin welding.

1 Like

Personally I would use a plugin for this as they have a bit more features and are more flexible with what they do say like moon animation suite or something like that.