I have come for your services again.

Hello how do i check whats infront of an armor stand? execute as @e[tag=p4.controller] at @s if block ^0.5 ^ ^0.5 air run setblock 8 -39 8 stone

also is there a way to correctly rotate them toward a direction?

I.E

Player presses W so fowards and they rotate a certain way, but if player presses D W then they face south west.

Continue to help post