Is there another way of playing animations?

Hi, I have ran into a problem.
I have made a reload animation using Unity’s built in Animation application, using rotation. Everything works perfectly, until I try to play it with the animation controller. Playing it from a script requires it to be marked as legacy, but when I mark it as legacy, all of my rotation is ignored, and only the position updates are shown.

Thank you for responding!

I have discovered a solution, by using Animator instead of Animation.