Need Help my Character is not going in the right direction

Before I added the code when I press A and D my character walks right and left. I wanted to make the character face left when I press A and face right when I press D. After putting the If statement I was able to make my character turn left and right but the problem is whenever I press A it will just turn left and still walk through the right side.

81436-11.png

A Vector3 is a point in space using x,y,z as its inputs.
Right now youre telling your character to move to Vector3(2,2,1)
you want your new Vector 3 to correlate with your axis movement.
for example your negative horizontal translation should correlate with a Vector3(-1, 0, 0) and positive horizontal translation Vector3(1, 0, 0) if you want your character to move left and right on the x axis.