How to make a passenger have the same rotation as its vehicle

my command rn is this: execute as @e[tag=aeternum.abilities.enchanter.ghost] run data modify entity @s Passengers[0].Rotation set from entity @s Rotation the entity with the tag is the vehicle entity in this context.. idk why it doesn't work though.

Continue to help post