Lift that moves First Person Controller

Good day, I'm currently working on an FPS of sorts, I've got my level mostly done, however I'm looking to implement a lift that actually works properly. At the moment it begins to lift the player, then gets stuck almost immediately.

What would be the appropriate way to fix this issue? At the moment I'm using the Vector.Lerp function. How could I get the lift to move the player correctly and not stop?

Thanks in advance to anyone who decides to help!

Have you looked at this question/answer:

Here, I wrote something that should work. Just set go to 1 to start the lift. To make it go down, use Vector3.down, and switch the >= to <=.

var go = 0;

function Update () {
      if (go); {
            Transform.Translate(Vector3.up * Time.deltaTime);
            if (Transform.position.z >= [insert z coord of destination here]); {
                  go = 0

Hope that works!