Need Help With Unity Health Script

I am a year 7 who is in need of a health script and this assignment i dues in 5 days and i am a beginner in c sharp it is for the Roll A Ball

pls Help

This is an easy one.

Google is your best friend.