Help with health reduction script

I know this is a silly question but im having a brain fart. I made this script to minus 10 health from the player, but it seems to not work

the ApplyDamage script:

OnTriggerEnter(hit : Collider){
hit.GetComponent(“HealthScript”).health -= 10;
}

The Health Script:
public var health : int = 100;

function OnTriggerEnter(hit : Collider){ hit.GetComponent(“HealthScript”).health -= 10; }

you need to write function. I’m surprise you could run it, Unity should complain that this is wrong.