Endless platforms

Does anyone know some tutorials or can help me with the script for endless platforms like in the game stairs. I want the platforms to be moving rather than player, and also to genere random platforms out of a few different ones. All the tutorials I found show how to generate platforms when the player is moving. I tried some codes but the movement looks really laggy.

What scripts did you try? I have some object mover scripts that could work…
my platforms are stationary, but I move other gameObjects…