Hydraulic Help

Hopefully you guys can help me. Im trying to make a Auto gun shop (Not with E2) now ive gotten all the nesscesitites but i need a working dispense type thing where like when the person buys his/her gun it pops up and the hydraulic sheet we’ll call it, comes and pushes the gun to the exit. Does anybody know how to do this?