How do i make an infinite traffic generator source

Im trying to make a traffic generator, one like crossy roads

theres no tutorials ive seen that explain that
i looked simply every where i can but havent seen a solution

heres an example since i cant upload a video [⭐NEW MAP⭐] Highway Rush - Roblox

Are you talking about actually spawning and moving cars or the logic behind how you would generate them?

Im talking about both, how to make then move in a row infinitely while getting generated if that makes sense. basically what you said.

I’ll let someone else explain the spawning and moving because that’s a very tedious albeit straightforward process,

For the logic behind spawning them, If each row has gaps in it then the only three rules you need to follow are:

  • The speed of each row of cars cannot exceed speeds faster than the player
  • Lanes of traffic moving in the same direction must have different speeds than one another to allow for more gaps to be created while the cars are actively moving
  • Lanes of traffic moving in opposite directions can be at different or the same speeds as one another

Additionally, If you’re going to have treelines similar to crossy roads, I would recommend the last two rows travel in opposite directions of one another that way the player is able to backtrack in case they miss their exit opportunity.