How to make a lift that can be turned on and off to go up and down?

How would I do something like that? I would also like for there to be two movable models to act as targets so i can use it for more things.