Super Mario Bros. up and down elevators

I want to make those two elevator platforms that move up and down infinitely. Do you know hot to make that work?

This might be of help

Show me your code of it, please.

Sorry about the delay took me a while to get around to it but this is the events

and a video of the results