Change nbt tag to a scoreboard value(1.21)?

I want to change a entities Motion tag based off a players look_at_x, look_at_y, look_at_z scoreboards.
Continue to help post