turret not getting destroyed

hello
(just to let you know i’m a newbie)

i am making a game where you have to shoot at turrets but every time i shoot at turret it wont get destroyed!

here is my coding!
#pragma strict

function OnTriggerEnter(hit : Collider)
{
	if (hit.gameObject.tag == "wormBullet")
	{
		Destroy (hit.gameObject);
		Destroy (gameObject);
	}
}

and here is pic of my turrets properties!
Imgur

thanks in advance!!!

I’m noticing that you have this script on the top part of the turret. When you run the game in the editor, is this top part of the turret being destroyed while the base remains?

You probably want to put these scripts on the root game object, smallturret.

@Volix OH! I see the problem now. You are using OnTriggerEnter, but under SphereCollider, you have not ticked the Is Trigger box. You’ll need to use OnCollisionEnter instead or tick that trigger box (which will keep it from being able to have any physics interactions).