trying to make moving armor stand

currently trying to make an armor stand that spawns on right click detection and moves in the direction the player is looking and cant seem to get the movement to work, anyone know how?

Continue to help post