unity – Cannot access public float from another script

I’m trying to access a variable that I used in a different script. But when I use the variable I get this error message. Assetsjetpack.cs(11,40): error CS0103: The name ‘xRotation’ does not exist in the current context.

This is the code.
code from first script
public float xRotation = 0f;
code from second script
Vector3 dir = Quaternion.AngleAxis(xRotation, Vector3.forward);