Calling variables from other scripts upon collision?

I don’t see anything wrong with my code, but when the script is supposed to take health from the enemy, it is throwing a null reference exception… I can’t figure out why.

void OnTriggerEnter(Collider collide){
		
		if(collide.tag == "Enemy"){
			Debug.Log("Hit Enemy!");
			//collide.gameObject.GetComponent<EnemyScript>().Health -= damage;
			eScript = collide.gameObject.GetComponent("EnemyScript") as EnemyScript;
			eScript.Health -= damage;
			
		}
	}

Code should be pretty self-explanatory. Thanks for any help in advance.

it should work
2 things to verify :
you mispeled “EnemyScript”
I prefer to use → collide.gameObject.GetComponent() ; So you know there is something wrong before running your game.
Your gameobject is made of multiple gameobject , and the component is not called.

ps : very few people name the variable with uppercase “Health” should be “health” ( it’s up to you)