How to save variables in a playerstate

So I discovered by some browsing i’m suppose to save my variables in a playerstate? which is in project settings>maps/modes>default modes(took 30mins of googling) My question is how do i save the variables exactly. I have a couple ideas but honestly I will just be shooting arrows in the dark. Can someone show me a picture? I made the blueprint already. But i think i saved variables before with an interface. I just find it so strange that everyone says use a playerstate but theres no tutorials on it.

The issue that came up to make me stumble upon playerstate was, when my player dies the health bar doesnt reset to 100 and refill. so i figured its because the variable wasnt saving