Bones and motor6d's

I have a character that is a mesh rigged with bones (because the body is one solid mesh) and the head and eyes are attached to this with motor6d’s.

Is there any way to animate the body with bones, and when the bones move the body in a way, such as bending or twisting, the head, connected with motor6d’s can also move with the body.

As of right now, when the body moves, the head just stays floating in space.

Thanks.