Trying to use a tool holding animation and motor6d at the same time

Ok. I have a hold animation that plays when the tool is equipped.
I used a script to change the c0 of the shoulder motor 6d. It works but problem is, when you aim to high up or too low, the arms would look really weird and only if you aim straight then the animation would look normal. I want the holding animation to play even though the hands are facing another direction.

Could you show us what this looks like?