Add movement input not working

Then Everynone is right:

You use release location to calculate something during tick but the data is stale since you only get it once you release. By that time the gate is closed. So the data cannot be used.

Rethink your design.
Since upon release you have both the initial and the final positions, you can use, for example lerp, to do the movement. Or even better, MoveTo. Or …