I made an endless runner but im having problems with black lines between objects when they reset their positions.
The first image is the start of the game. The second being after the objects have reset their positions back to the beginning.
This is the only script i have for these objects. I probably have my math wrong. But i can't see where it's wrong. I've done multiple variations of when to remove object and where to put it back.