How would I get my parents rotation?

I have a script, but the parent has a rotation I need. I saw a float thingy that can be like…

x = blah blah

I just cant find it, and help?

and if you need to know, the script Im making is a equip script, so I can clone the weapon into the player.

If you really want the parent rotation, read transform.parent.rotation - but notice that this is a Quaternion, whose XYZ components aren’t angles! If you actually want the parent rotation about world X in degrees, read transform.parent.eulerAngles.x instead - but be aware that reading eulerAngles isn’t so reliable: there are several XYZ combinations that correspond to the current rotation, and Unity may (and often will) return the “wrong” one. This is particularly true when the other axes are non-zero, or when the angle about any of them crosses a multiple of 90 degrees.