One script issue.

Question, because I have never experienced this before, I have script that I am putting on a block, I either duplicate that block or make a new one and add the script that calls an event to destroy it, I want one block to be destroyed one at a time but for some reason no matter which block is hit all the blocks get destroyed., Why?

Is there a way to add the same script to multiple objects and have them be effected at different times?

What exactly is hitting your blocks?

Is it a rigidBody, a mouseclick?

Whatever the case, you just need to attach a script to a block that tells it when and how to destroy itself, and make that into a prefab.

Thanks for the reply, yes a rigidbody is hitting the blocks, but like I have it set up that there is a OnTriggerEnter function on the ball and when it hits the block it destroys not only that block but the other block that has the same script but it doesn’t hit the ball, that is where I am confused at.

When cloning a object during runtime it doesnt make a new object, it only replicates the original, if you change the original the change will apply to all the clones aswell.

copying an object during runtime is not the same as copying it in editormode.

Gotcha, thanks for the tip and the replies guys.