Camera does not follow mesh with animations?

I have the camera as a child of the mesh but when i walk/run and the animations play the camera doesn’t stay in a relative position of the mesh. How can I make it so the camera will follow the mesh during its animations?