kill @e[type=armor_stand,tag=BoneBoiPart]
kill @e[type=armor_stand,tag=BoneBoiPart1]
kill @e[type=armor_stand,tag=BoneBoiPart2]
kill @e[type=armor_stand,tag=BoneBoiPart3]

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

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

execute as @e[type=armor_stand,tag=BoneBoi] run data merge entity @s {NoGravity:0b,Invulnerable:1}
execute as @e[type=falling_block,tag=BoneBoiSand] run data merge entity @s {NoGravity:0b,HurtEntities:1b,FallHurtMax:100,FallDistance:100f,FallHurtAmount:100f}

execute as @e[type=armor_stand,tag=BoneBoi] run execute store result entity @s Motion[0] double 0.18 run scoreboard players get @e[scores={AttackTimer=140},limit=1,sort=nearest] PosXTemp
execute as @e[type=armor_stand,tag=BoneBoi] run execute store result entity @s Motion[1] double 0.16 run scoreboard players get @e[scores={AttackTimer=140},limit=1,sort=nearest] PosYTemp
execute as @e[type=armor_stand,tag=BoneBoi] run execute store result entity @s Motion[2] double 0.18 run scoreboard players get @e[scores={AttackTimer=140},limit=1,sort=nearest] PosZTemp

execute at @s run playsound minecraft:entity.enderman.teleport hostile @a[distance=..120] ~ ~ ~ 3 0.5 0.75
execute at @s run playsound minecraft:entity.enderman.teleport hostile @a[distance=..120] ~ ~ ~ 3 0.5 0.75
execute at @s run playsound minecraft:entity.enderman.teleport hostile @a[distance=..120] ~ ~ ~ 3 0.5 0.75
execute at @s run playsound minecraft:entity.enderman.teleport hostile @a[distance=..120] ~ ~ ~ 3 0.5 0.75
execute at @s run playsound minecraft:entity.enderman.teleport hostile @a[distance=..120] ~ ~ ~ 3 0.5 0.75
execute at @s run playsound minecraft:entity.enderman.teleport hostile @a[distance=..120] ~ ~ ~ 3 0.5 0.75