Skeletal mesh detaching parts of the model during animations.

I asked it on reddit but got no answers so I’m pasting it here.

I made a robot model in blender rigged with rigify but when I export it into UE and retarget animations it does this.

How can I fix this to make sure every part stays attached at all times besides manually editing every animation, keyframing every time they detach? I tried many different weight paint setups already and nothing works.

Could you post a screen of what the anim looks like with all bones visible? Click teh eyeball show bones all hierarchy. Hard to tell whether it’s weight issue with mesh or if anim is breaking joints without seeing the bones.

If anim is breaking joints, may need to edit skeleton, and set all the bones to only use rotation from animations(except pelvis which would probably need translation scaled too).