Combat Collision script?

Hey fellas,

The game I’m working on is essentially a side scroller fighting game. My teacher told me all I need is a combat collision health bar script, but I can’t recognise one because I’ve never used Unity or scripting. :frowning:

That would simply mean a script that has a health amount and decreases that health amount every time the object collides (or in this case punched/kicked/etc.)

Exactly, so is there anyone who would be willing to provide me a basic/simple script? C: