that is my code here for the objects , the player here is just a ball that moves in the z-direction with a certain force and all i want simply is for the objects to move whenever the player passes them .
Use code tags to paste code, not screenshots. Screenshots are a pain to read.
When you say:
What do you mean by that? Every script always works “individually for each object”, and the only reason it might not would be if you were referencing the same global values or the same object on the different copies of the script.
I guess we’re just not understanding what each other is trying to say?
Let’s try it this way: What is the specific problem you have? When you try and do whatever you’re trying to do: What is the result you expect, and what is the result you see instead?
I have an object pool that instantiates objects along the Z-Axis ,each time the ball passes an object i want that object to move but that doesnt seem to happen ,
the if function is always false , thats why the object doesnt move ,when i debug the transform position in z it is always the position of the last instantiated object