How do i make a When bullet shoot's gameobject the gameobject Explode?

when i create a if(Bullet.hit.gameObject.Destroy.gameObject); nothing happen?
why? pls answer pls help me !

Use a “Compare Tag” system to check that when your bullet hit’s an object, e.g a wall with the tag “Structure”, then the object with the tag structure will destroy.

Not sure if this will work, I just threw it together off the top of my mind :slight_smile:

void OnControllerCollisionHit(ControllerCollisionHit hit){

if(bullet.hit.gameObject.CompareTag == “Structure”){

    Destroy(gameObject);

}

}

thx so much to you GUys :slight_smile: