How can I play an Animation in a floating pet ? (BodyPositioned)

Hi! I have a pet system with BodyPosition and BodyGyro and I was wondering how Adoptme make their animations

The pet needs to be a rig, it must have a head and a torso. Other features are optional. Then you can insert a humanoid and animate with the basic ROBLOX animator. Then upload the animation and play it on the humanoid.