Don't destroy on collision

Hi, I had a question about this little script I made. It goes on an instantiated bullet.
Now, my problem is, it always destroys itself, while I actually want it to survive
whhen in contact with the player. What am I doing wrong here?

function OnTriggerEnter (other : Collider) {

if(other.CompareTag (“OtherPlayer”)){

	other.GetComponent(PlayerVariableHandler).hp -= Damage;
		if(DestroyOnImpact){
		Destroy(gameObject);
		}
	}
	if(other.CompareTag ("Player")){
	}
	else{
		if(DestroyOnImpact){
		Destroy(gameObject);
		}
}

}

Made Some changes, give this a try:

function OnTriggerEnter (other : Collider) {
	if(other.CompareTag ("OtherPlayer")) {
		other.GetComponent(PlayerVariableHandler).hp -= Damage;
		if(DestroyOnImpact){
			print("Destroyed1 by hitting: " + other.gameObject.name); //this way you can tell which conditional statement is destroying it
			Destroy(gameObject);
		}
	}
	//I made this an else if because if it hi a OtherPlayer, then this will always be true
	else if(!other.CompareTag ("Player")){ //instead of having a blank conditional statement to do, just made it true if its NOT the player tag
		if(DestroyOnImpact){
			print("Destroyed2 by hitting: " + other.gameObject.name);
			Destroy(gameObject);
		}
	}
}

Maybe it is never hitting the player and it’s colliding with something else beforehand, this should tell you when it’s being destroyed and from what collider.

you are destroying the gameObject in your code.