Move OnGUI from bottom of screen to top

Hey! So I have the navigation bar script but I want to move it from the bottom of the screen up to the top but I’m not sure how. Can somebody help me? Script below.

using UnityEngine;
using System.Collections;
public class QM_Compass : MonoBehaviour
{
    // Feel free to set these all to private once you are done tweaking:
    private Transform myTransform;
    public int facingDir;
    public int degreeOffset;
    void Start()
    {
        myTransform = transform;
    }
    // Minor adjustments from 0,90,180,270 due to Font width
    // Adjust letter offset to match your Font size/width
    void OnGUI()
    {
        if (degreeOffset > -85 && degreeOffset < 90)
        {
            GUI.Label(new Rect((Screen.width / 2) - degreeOffset * 2,
            (Screen.height) - 50,
            180,
            25),
            "N");
        }
        if (degreeOffset > 5 && degreeOffset < 180)
        {
            GUI.Label(new Rect((Screen.width / 2) - degreeOffset * 2 + 180,
            (Screen.height) - 50,
            180,
            25),
            "E");
        }
        if ((facingDir > 95 && degreeOffset > 95) || (facingDir < 276 && degreeOffset < -90))
        {
            GUI.Label(new Rect((Screen.width / 2) - facingDir * 2 + 360,
            (Screen.height) - 50,
            180,
            25),
            "S");
        }
        if ((facingDir > 186 && degreeOffset < -5))
        {
            GUI.Label(new Rect((Screen.width / 2) - facingDir * 2 + 540,
            (Screen.height) - 50,
            180,
            25),
            "W");
        }
        GUI.Box(new Rect((Screen.width / 2) - 180,
            (Screen.height) - 65,
            360,
            35),
            "Heading");
    }
    void Update()
    {
        facingDir = (int)Mathf.Abs(myTransform.eulerAngles.y);
        if (facingDir > 360) facingDir = facingDir % 360;
        degreeOffset = facingDir;
        if (degreeOffset > 180) degreeOffset = degreeOffset - 360;
    }
}

replace “(Screen.height) - 50” with “50” everywhere it appears and for the box “(Screen.height) - 65” for “35”

I don’t really understand what you mean. can u explain differently

Replace this

            GUI.Label(new Rect((Screen.width / 2) - degreeOffset * 2,
            (Screen.height) - 50,
            180,
            25),
            "N");

with this (Every time it appears, only for the Y value of the Rect)

            GUI.Label(new Rect((Screen.width / 2) - degreeOffset * 2,
            25,
            180,
            25),
            "N");

new Rect() works like this

new Rect(x,y,height,width)

it’s so if you want to have a different position on the screen you should change X and Y, Y for the Vertical movement