First of all I apologise for not having the code formatted correctly, a screenshot is what I have.
For background, we’re making a 3d endless runner where the ground is what is moving, the character just jumps to different lanes and then back to the middle on keyup.
When he jumps forward, the movement is smooth just like I want. On his way back on keyup, he just teleports if the final value is 1. If it’s .5 like it is on keydown, he goes half way.
I’ve tried so many things like clamping and move towards but I’m just not sure what to do after 5 days of trying to fix it.