Color.Lerp between gameobject in specific order.

I have 5 paths(cubes) that are used as a road in a endless runner im making. I’m trying to create running light effect from one path to other path, but not only it flashes for a seconds but it learps in order from left to right. Even if possible make 5 colors that move from left to right and then start again on left in an endless loop. My english is really bad so sorry if it’s not explained very well… Most of the code I have used doesnt work at all or the code justs picks one color and turns all others into that one.

Could you give me a hint on how to do this and why is this making so much headache for me?

I think you best have a look at the Unity particle system.
The best way is to make a new scene and play around with the settings see if this is what you are looking for.

If it is not there are 2 ways you can go about doing this with GameObjects:

The 1st is making a object that moves in a direction and that self-destructs after x-amount of time or distance. This object can then be added to you scene and left to let it handle itself.

The second is the same as the first only you don’t let them self-destruct. Instead you use a boxcollider(s) that destroys the objects that enter it.

If you need any help with any of this let me know but your question is to general for me to give you one good answer. And without your code it is hard to help.