is this possible?

can I delete cloned falling objects when they get at a certain y position ? this is the code I got… i want it to get deleted when the objects get to -10 at the y pos

loopy = GameObject.Find(“floorLevel1”);

function Start (){

clonedObject = Instantiate(loopy,transform.position +relativePositionOffset, Quaternion.identity);
if(transform.position.y>200){
Destroy (gameObject);

Try placing the destruction code in the update loop. That way it’s checking every frame whether the object needs to be destroyed. Also, here’s a link to read up on the differences between Start() and Update().

void Update()
{
   if(transform.position.y < -10)
   {
      Destroy(gameObject);
   }
}