trigger instaniated does not work?

Hi guys mytrigger instaniated does not work?
however it does work if i set a start function
colliders and rigidbodys are attatched any ideas?

 var newObject : Transform;
 function OnCollisionEnter(collision : Collision){ //instanniate has to have a start function 

while(true){ 
yield new WaitForSeconds (1); 
Instantiate(newObject, transform.position, transform.rotation); 




} 
}

got it to work by assigning the script to another object in its hierchy not hundred percent certain why it worked but think the reason it was not working was because the main player was set up not to register collisions!

I also modified myscript and set up a tag feature see code below

var newObject : Transform;
function OnTriggerEnter(other : Collider) {

if (other.CompareTag(“tentacle”)) {

Instantiate(newObject, transform.position, transform.rotation);

}
}