How to save the amount of hp, score and xp after changing levels?
The game instance will get you from one level to another, use the save game if you want to remember player stats between runs of the game.
This forum is peppered with millions of examples on how to do that.
I recommend starting on google, it will bring you back to the forum.