Using Webstorage to locally store a high score and replace it if the score is broken.
You can also do this with Session instead of Local to keep the high score only for that session, not forever.
Watch on YouTube
Unlock your full gamedev potential
Upgrade to the Personal Edition of Construct 2, it has way more features and won't holding back from making money and using your full creativity like the free edition does. It's a one off payment and all Construct 2 editor updates are free for life!
Plus, it's got a lot of additional features that will help you save time and make more impressive games!