pseudo-code for assigning the hiscore to score
score>hiscore - set hiscore to score
/////////////on game ended//////////
gameover = true - create text to position x, y
- set text to "score: "&score
- create text to position x, y+200
- set text to "hiscore: "&hiscore
x and y is the position you want it to show, you can pin or spawn to a score object then move that or depends on how you want them to animate or react.