Need help with Player Prefs and Highscore

In my game the Highscore should be showen in Menu and in the Scene it self. But the Highscore will only be showen in the Main Scene. How can i fix this

in Update:

targetDistance.text = PlayerPrefs.GetInt(“maxDistance”, distanceCanvas).ToString() + " m";
//max
if (distanceCanvas > PlayerPrefs.GetInt(“maxDistance”,0))
{
PlayerPrefs.SetInt(“maxDistance”, distanceCanvas);
}

With 44 posts you should know by now that people would like you to use code tags. Not only should you know, but when i looked through your threads i found people telling you every time you posted code examples, to use code tags. So i just gotta ask: Is there a reason why you are ignoring that request? Code tags just add readability through formatting and syntax highlighting. You can add your code with code tags by using the <> button when posting something. It’s also the first sticky on this subforum.

Sorry nobody told me

Better late than never:

Format the code you’ve pasted and someone will read it then.

Please show the code (using code tags!) where you set the menu text. And your code that you have above shows maxDistance, not Highscore. Where are you calculating and storing the score?