tp to original position

making my boss jump but for some reason he doesnt return to his original position when i do this

before jump:
execute store result score @s var run data get entity @s Pos[1] 

after jump:
execute store result entity @s Pos[1] float 1.0 run scoreboard players get @s var
Continue to help post