How to make a regenerating healthbar

I need a health bar for my FPS. The problem is i am new to Unity and dont know how to script. If someone could put a script in the comments and how to apply it i would be very creatfull. (Obviusly i would like it if when it goes empty a death screen appears and you later respawn)

Thanks in advance.

OK it did not occur to me that it could be insulting to ask for codes.
I will try to learn how to script now.