error in destroying bullet prefab

hi, i want to destroy bullet prefab when it is instantiated after 2 seconds and i wrote this code, but it doesn’t working, and during playing mode the cloned prefabs doesn’t destroyed

var seconds : float =2;
static var playerShooting:GameObject ;

function OnCollisionEnter(other : Collision){

   if(other.gameObject.name == "Player"){
      Destroy(this.gameObject);
   }
   
   if(other.gameObject.GetComponent("Health")){
      Health.enemy = playerShooting.name;
      Health.health -=10 ;
   }
}

function start(){
 
   yield new WaitForSeconds(seconds);
   Destroy(this.gameObject);
}

I’m assuming this is the bullet script?

It’s not being automatically destroyed because you misspelled the Start callback. It is with a capital “S”. Spelling it with a lower case “s” just defines your own private start, which is not called by Unity. Change it to:

function Start(){
 
   yield new WaitForSeconds(seconds);
   Destroy(this.gameObject);
}