How do I make a health bar that heals after a certain amount of time has passed?

I’m trying to make an armor bar with a timer to see if I can recover armor after a while but I can’t figure it out just yet. Any tips?

Add a timer for after getting hit. If you get hit again, reset and start the timer to restart it.
After that amount of time, have another timer that heals +1 set to repeat forever.
If the bar is full or if you get hit again, reset both timers and start the first one again.

Do you have a link to the game?

Does your game also include health upgrades / increasers? E.g Health potion

Oh sorry! I already figured it out but thank you for trying to help!

@“The Kodex” …
Your post date is April 1…