How to make a lift between two floors?

Depends how you want it to operate…continuously going back and forth between the levels and the player has to time it right to get on? Activate when the player steps up onto the floor? If so do you want it to automatically stop at the second floor or keep running so long as the player is on the platform? Many ways you can go about doing this.