Can't Activate a GameObject Because of a Clon Enemy

i want to activate a gameobject when my player hits an enemy.
i can activate my gameobject when my player hits the original enemy. but i cant activate my gameobject if my player hits the clon enemy. there is an error and stops the game when i hit the clon enemy with same script.
how can i fix it?
thanks for answering.

if your searching for a gameobject via or for the comparison you’ll need to strip the clone bit off the end after instantiate.

doing something like

GameObject Temp;

Temp = Instantiate(Prefab) as gameObject; =;

will strip it of the clone designation.