just slide the player health variable and MAGIC! it can also be used for loading
there is another health bar that is more complicated by @TheOldAI123 but its pretty laggy when its in a game.