Highscore across levels

I’m trying to make a game with a points and highscore system. I have the overall points system, but I want it to be able to keep the score across levels. Whats supposed to happen is you fight through a dungeon, find a door, fight a boss in another level, and then go to another level that saves your highscore and compares it with ones other people got.