How could I make your arms and head follow your mouse up and down?

I am having this problem too

but I dont how to fix and yes I am using Motor6D animations