So I have created a dandy Airplane script, while your flying it displays your Speed, Turning Speed, Rotating Speed, ect. But I also want to display the Z Rotation of the airplane to help players know where they are but have no idea how to. Ive tried looking it up but all it brings me to is how to rotate an object which isn’t what I want. I know theres probably a very simple answer but how would I be able to find out the Z Rotation through script and display it? Here is a snippet out of my script to show what Im trying to show. (This Displays the speed the player is going up/down)
if (GUI.Button (Rect (20,40,160,20), "Y-Speed: " + YSpeed)) {