Lol, thanks guys.
Webstorage only saves players score, and cannot be accessed by other players. Webstorage is not what you think it is. It is saving to players computer only.
If you want global webstorage, you need an external database, which is going to be far beyond your current skill level. There are tuts on it using mysql (I think) but that is pretty advanced an requires actual programming knowledge.
I don't understand your highscore1 and highscore2,
But highscore is highscore and should be over written with new highscore.
Highscore = 5000
PlayerScore >= Highscore then Set Highscore = PlayerScore else Leave Highscore = Highscore.
But like i said, global highscore cannot be stored using anything in construct, you need to use external storage options.
Global Highscore is players wanting to beat the best score of the game.
Player wanting to beat his current best score? which you don't need an external database. Because if you just want player competing against his best score then, webstorage will work.
Edit 2: Added 2 files. One is highscore example. As you can see it stores highscores, but the high scores are not persistent, when you exit game, you loose highscores.
You need to save them to webstorage to make them persistent.
So attachment to is something I did for someone else, it is saving gold coins to webstorage.
Your homework assignment is to make the highscores save to webstorage. Oh, I will not be checking your homework, because in life, you have to be your own teacher and student.
Saving to external database is too advanced for you, so I am not even going into that.