Gui.DrawTexture help

ok i was following a tutorial, everything has worked as required except i cannot move the gui texture up and down , i can only move it left and right i know it’s this section that controls it’s position , but i’m not sure one what to type to control the up and down too

function OnGUI () {

if (curHp > 0)
    GUI.DrawTexture(new Rect((Screen.width/2) - 100, 50, hpBarLength, 15), HpBarTexture);


Did you try changing 50 to a different number? Lower number should make the texture go up and bigger number should make it go down the screen.