';' expected. Insert a semicolon at the end.

Hi, I’m beginning Unity, following some simple video tutorials, and I came across this error in this script:

var health = 10;
var TakeDamage : boolean;

function OnTriggerEnter(other : Collider){
	if(other.tag == "Player"){
	TakeDamage = true;
	}
}

function OnTriggerExit(other : Collider){
	if(other.tag == "Player"){
	TakeDamage = false;
	}
}

function Update(){
	if(TakeDamage){
		if(Input.GetButtonDown("Fire1")){
			health --1
		}
	}
}

The error is on the line health --1. When I put in a semicolon, the error remains. I’ve tried everything I can think of to fix it, but I’m also not very skilled at JavaScript.

That would be:

 health--;

Or

 health -= 1;

Both take one off health.