Ah I forgot you are using c2.
Btw, my boolean just show when you need to put the check score with high score.
And the place that I think it'll fit that when your robot on destroyed. Add a sub-event and put my condition there.
I saw in your first screenshot, On "HighScore" get, you should set the variable HighScore not the key "HighScore" of Local Storage.