when I press the a it moves to the right and when I press the d it moves to the left

that’s my problem, when I press the a it moves to the right and when I press the d it moves to the left, if anyone can help me i would appreciate it

code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Movement : MonoBehaviour
{

float speed = 6f;

void Update()
{
    float horizontalInput = Input.GetAxis("Horizontal");
    float verticalInput = Input.GetAxis("Vertical");

    Vector3 movementDirection = new Vector3(verticalInput, 0, horizontalInput);
    movementDirection.Normalize();

    transform.position = transform.position + movementDirection * speed * Time.deltaTime;

}

}

If you want to reverse the horizontal movement just put a - sign in front of it.

hey thank you very much seriously, I’m starting with this and it’s quite complicated haha

public float forwordForce = 800f;

    public float sideForce = 500f;
    public float verticalforce = 500f;

void FixedUpdate()
{

        transform.Translate(0, 0, forwordForce * Time.deltaTime);
        if (Input.GetKey("n"))
        {
            transform.Translate(0, 0, 2*forwordForce * Time.deltaTime);
        }
        if (Input.GetKey("d"))
        {
            transform.Translate(sideForce * Time.deltaTime, 0, 0);
        }
        if (Input.GetKey("a"))
        {
            transform.Translate(-sideForce * Time.deltaTime,0,0);
        }

}