Enemy Die! HELP!

my enemies wont die when i shoot at them! need help!

i got two scripts, first the enemy health;

var health = 100;
var TakeDamage : boolean;
var texturewidth : int;
var textureheight : int;

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 --;
}
}
if(health < 1){
print(“Enemy Down!”);
health = 0;
Destroy (gameObject);
}

if(health == 3){
    HealthFull = true;
}

}

And so the player/ shooting script;

var projectile : Rigidbody;
var speed = 20;

function Update () {

if(Input.GetButton(“Fire1”)) {

clone = Instantiate(projectile, transform.position, transform.rotation);
clone.velocity = transform.TransformDirection(Vector3(0,0,speed));

Destroy(clone.gameObject,3);

}}

Help would be greathfull!

With how you have this set up, I believe that the OnTriggerEnter processes will only happen when the player runs into the enemies, not the bullets (it won’t pass the if statement) . Unless you tagged the bullets as “Player”

You could try tagging the bullets as player with how you have it and see if that passes.