Left and right is inverted when moving!

i dont get any errors! Here is the code:

private float speed = 8f;
private float jumpforce = 100f;
private float gravity = 190f;
private Vector3 moveDir = Vector3.zero;
// Use this for initialization
void Start()
{

}

// Update is called once per frame  Horizontal
void Update ()
{
	    CharacterController Controller = gameObject.GetComponent<CharacterController>();
        moveDir = new Vector3(Input.GetAxisRaw("Vertical"), 0, Input.GetAxisRaw("Horizontal"));
        moveDir = transform.TransformDirection(moveDir);
        moveDir *= speed;
        if (Input.GetButtonDown("Jump") && Controller.isGrounded)
        {
            moveDir.y = jumpforce;

        }
        moveDir.y -= gravity * Time.deltaTime;
        Controller.Move(moveDir * Time.deltaTime);
}

}

Vector3s are always represented in X, Y, Z order. So I’m guessing you meant:

moveDir = new Vector3(Input.GetAxisRaw("Horizontal"), 0, Input.GetAxisRaw("Vertical"));

Go to edit > project settings > input and expand the horizontal axis and them select invert, this will switch left and right around.