There are much longer versions on the YT channel of Ivan Miranda who built it: https://www.youtube.com/channel/UCF3cDM_hQMtIEJvEW1BZugg
It works by pushing out wrong marbles in the elevator so only correct ones for the current time make out to the queue.


























Unfortunately not real, I would have loved to read into some of them.