Destroy issue.

I am using Destroy(gameObject.FindWithTag("projectile")); to destroy it after it hits Enemy.

It works fine when I shoot only one projectile but as soon as I shoot more than one, the projectile goes right thru enemy and keeps on flying withouth destroying.

I have Sphere Colider covering whole Enemy.

How can I fix this?

You can just add

Destroy(gameObject) in the OnCollisionEnter and ad that script to the projectile instead of on the character.

if you need it on the character you can do sometthing like
if(other.comparetag == “projectile”)
{
Destroy(other.gameObject) in the collision enter event.