Help building an elevator!

I consider myself pretty good when it comes to forge, and I’ve built an elevator in my map. I set the elevator physics to phased to make it easy, so I thought I was done. Added scripting where there were 2 buttons, one on top, and one on the bottom. The both do the same thing; they toggle a single channel on and off. When the channel is off, the elevator goes down, and when its on, it goes up. The only problem is when you press to button when the elevator is in the middle, it’ll think it’s finished moving and it’ll go through the floor or ceiling! I’ve tried setting the physics to fixed, but it gets stuck in the middle. I spent a good hour on it, but it just won’t work on the fixed setting. There must be an easier way to do this, so can some one help me?