Bone doesn't rotate through script

Hello people,
I’m working on a script moving the arm of my character in the direction where the camera’s looking.
Can’t figure out why it’s not working…

Here’s the script, in the Player Control script, where cam is the camera GO, armControl is the bone i’d like to move, armRot is just a float.

void LateUpdate()
    {
        armRot = cam.transform.rotation.x;
        armControl.Rotate(armRot, 0, 0);
    }

Thank you!!

Transform.Rotate rotates the object at the given degree (Unity - Scripting API: Transform.Rotate). But you want to set the rotation. I don’t know, if it works, but you need something like that:

armControl.rotation = cam.tranform.rotation;