execute as @s run execute store result score @s PosX run data get entity @s Pos[0] 100
execute as @s run execute store result score @s PosY run data get entity @s Pos[1] 100
execute as @s run execute store result score @s PosZ run data get entity @s Pos[2] 100

execute as @s run execute store result score @s PosXTemp run data get entity @s UUID[0] 0.00000139698
execute as @s run execute store result score @s PosYTemp run data get entity @s UUID[1] 0.00000025698
execute as @s run execute store result score @s PosZTemp run data get entity @s UUID[3] 0.00000139698

execute as @s run scoreboard players operation @s PosX -= @s PosXTemp
execute as @s run scoreboard players operation @s PosY -= @s PosYTemp
execute as @s run scoreboard players operation @s PosZ -= @s PosZTemp

execute as @s run execute store result entity @s Pos[0] double .01 run scoreboard players get @s PosX
execute as @s run execute store result entity @s Pos[1] double .01 run scoreboard players get @s PosY
execute as @s run execute store result entity @s Pos[2] double .01 run scoreboard players get @s PosZ

execute at @e[type=armor_stand,name=CadeyrnFight] positioned ~-2 ~1 ~-2 run tag @s[type=armor_stand,tag=FinalStandTP,tag=!GotThingy,distance=..23] add KillMeLol

#execute as @e[type=armor_stand,name=CadeyrnFight] run execute at @s positioned ~-2 ~1 ~-2 run execute if entity @e[type=armor_stand,tag=FinalStandTP,tag=!GotThingy,distance=..23] run function zzzzdonotuse:cadeyrn/attacks/finalstand/tpstandtest

tag @s add GotThingy
execute at @s run tp @s ~ ~ ~
execute at @s[tag=!KillMeLol] run summon minecraft:armor_stand ~ ~ ~ {Marker:1b,Invisible:1b,Silent:1b,Tags:["DiePls","FinalStandTP2"],NoGravity:1,Passengers:[{id:"minecraft:falling_block",Tags:["DiePls","FinalStandSand"],BlockState:{Name:"minecraft:soul_fire"},Time:1}],Rotation:[0F,0F]}
execute at @s[tag=!KillMeLol] run execute as @e[type=armor_stand,tag=FinalStandTP2,distance=..1,tag=!GotLookTag] run tp @s ^ ^ ^ facing entity @e[type=armor_stand,tag=FinalStandLooky,sort=random,limit=1] feet
execute at @s[tag=!KillMeLol] run tag @e[type=armor_stand,tag=FinalStandTP2,distance=..1,tag=!GotLookTag] add GotLookTag
kill @s

