scoreboard objectives add SpawnX dummy
scoreboard objectives add SpawnY dummy
scoreboard objectives add SpawnZ dummy
scoreboard objectives add SpawnU dummy

execute store result score @s SpawnX run data get entity @s Pos[0] 10000
execute store result score @s SpawnY run data get entity @s Pos[1] 10000
execute store result score @s SpawnZ run data get entity @s Pos[2] 10000
execute store result score @s SpawnU run data get entity @s Rotation[0] 10000