how to set the x rotation of an object to be the value of another code example
Example: how to just aet z rotation on transform unity
transform.rotation = Quaternion.Euler(0, 90, 0);
transform.rotation = Quaternion.Euler(0, 90, 0);