How to make proper health regen?

Hello, I have a script that regenerates the characters health attribute after getting damaged. The script works fine but I want it to only regen after the player hasn't been hit for a couple of seconds. Currently it starts to regenerate immedieatly after getting hit. Also why does my characters shield attribute heal when I use health.Heal ? I only want the health to regenerate, It doesn't regen the shield if I take it off of the shield attributge in Character Health.
 
You can get a reference to the Health attribute and then modify that:

 
Top