Question: how to build a command block elevator?
Answer: There two command blocks staying one side of the elevator, and the upper one is for floating effect. ...  Two command blocks are next to the door on top of elevator. ...  As the picture shows, press the upper button, players begin to float while the button below is to remove floating effect and open the door.