Problem with roblox animator

I am currently having a problem with the roblox animator where the rotation automatically gets transformed

example: 190 degrees gets transformed to -170, which is indeed correct but changes the direction
I tried alot to find a way but it seems impossible, is there a way to fix this?