Teleport a player repeatedly while still allowing them to move their camera

Hi ! So i'm basically trying to make a "smooth" elevator, and the way I made it teleports the player up 0.1 block each tick. This however leads to the players having trouble rotating their head since their orientation constantly gets reset to the tick before. Is there any way to bypass this and allow them to normally look around ? Thanks in advance !

Continue to help post