Rotating Animated Bones

Ok so basically my next game is gonna be a third person game, and the character is gonna have to be able to pull out weapons and then aim with them. So I know how to rotate animated bones using lateupdate, but the problem is, is that I can’t figure out how to rotate a bone on the players x-axis when it itself is rotated in at an angle, so I need to rotate the forearms up and down but because they’re angled weird I can’t for the life of me get it to work, any help would be greatly appreciated thanks.

rotate via a local axis

In 3D games you have different ways of thinking about Transforms , a transform being position , rotation and scale

World space is when you consider a tranform in relation to the World

Parent space is when you consider a transform in relation to it’s parent ( you inside a car, in the driver seat for example )

Local spce is in the object s space itself ( the gun itself in relation to itself, so when you flip the gun in local space it always flips the same way on any given axis )