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;