Setting health to a certain amount 1.20.1

What’s the best way to save my current hp, and then use a function or something later on to set my health to the exact amount it was saved at?

Continue to help post