Golf club hitting mechanism

so ik u can do execute positioned 0.0 0.0 0.0 rotated as @s rotated ~90 ~ run summon marker ^ ^ ^1 {Tags:[marker]} and then data modify entity @n[tag=ball] Motion set from entity @n[tag=marker] Pos

but how can i make it adjustable for the strength of it hitting? What i would do is somehow modify the position of the marker based on a score, but i dont know how to modify it, neither do i know what i should make that score be, and maybe this isnt the best aproach.

Continue to help post