HighScore not working

So i have a simple game and whenever you get a high score i want it to be displayed in the menu. However no matter what score you get that score is always shown , so if the highscore is 20 and you get 5 it displays 5 as the highscore ( whatever score you get).
If you have a solution it would be a ppreciated thanks.
Here are the scripts:

Script that records score and sees if it is higher than the high score:
#pragma strict
public var cube : GameObject;
static var score : int = 0;
var text : Text;

	 function Awake () {
	 score = 0;
	 PlayerPrefs.SetInt("HighScore",0);
	
	 }


	 function Update () {
	 if (cube == null){
		if(score > PlayerPrefs.GetInt("HighScore")){
           PlayerPrefs.SetInt("HighScore",score);
	   }

		}
		}
	 
	 function OnTriggerEnter2D(other: Collider2D) {
	
		  
		  score +=1;
	text.text = "Score : " + score;

}


		function Animbr () {



		text.GetComponent.<Animation>().Play();

		}

And here is the script that displays the high score:

#pragma strict
var text : Text;
function Awake () {

PlayerPrefs.GetInt("HighScore");
}

function Update () {
text.text = "Best Score: " + PlayerPrefs.GetInt("HighScore");
}

fixed it with some perseverance, heres my code:
function animbr is when the cube has died, game is over.

function Awake () {
score = 0;

	 }


	 function Update () {
	
		if(score > PlayerPrefs.GetInt("HighScore")){
      
       PlayerPrefs.SetInt("HighScore", score);
	   
	   }

	 }
	 function OnTriggerEnter2D(other: Collider2D) {
	
		  
		  score +=1;
	text.text = "Score : " + score;

}


		function Animbr () {
		 
		 if (cube == null){
	
	   PlayerPrefs.Save();

		}


		text.GetComponent.<Animation>().Play();

		}

Please make sure that you’re saving your playerprefs(PlayerPrefs.Save()) so you don’t lose data.

Also why haven’t you been debugging your call to make sure you know what the “stored” score was.

function Update () {
  if (cube == null) {
    var tempScore:int = PlayerPrefs.GetInt("HighScore");
    Debug.Log("Current Stored HighScore: " tempScore.ToString());

    if(score > PlayerPrefs.GetInt("HighScore")) {
      Debug.Log("New score greater then HighScore, setting new score");
      Debug.Log("Old Score: "  + tempScore.ToString() " - NewScore: " + score.ToString());
      PlayerPrefs.SetInt("HighScore",score);
      PlayerPrefs.Save();
    }
  }
}