Rotating like it does in animation editor?

Ok so do you guys know how when you go into animate something after you rig it, how when you rotate it and it will go by the rig, so things dont detach and stuff? Is there a way to do that?

Use Motor6D or weld

Motor6D: For parts that are going to animate
Weld: For parts that are not going to animate, but are glued