Health regeneration

Hey, I have a health regeneration system so that if the player is no longer taking damage for 3 seconds then their health begins to regenerate to the nearest 20%, the problem is, if you see the pic attached, I have a delay for 3 seconds, but that delay begins as soon as the player his hit for the first time, so if the player is hit once then after 3 seconds it goes back up which is good, but if the player is hit multiple times in the space of 2.5 for example, then after 0.5 seconds the health will regenerate prematurely. How can I fix it so the delay starts unless hit and then restarts again? Thanks in advance

replace the Delay with a Retriggerable Delay

Didn’t know that was a thing haha, thank you