Movment Script not working

I’ve been working on a game recently and I just started on the player moment and I ran into an issue with the player not moving when I hit my input button, ive been following this tutorial series Unity RPG Tutorial #2 - Player Movement - YouTube by gamesplusjames

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerController : MonoBehaviour
{
    public float moveSpeed;
   
    // Start is called before the first frame update
    void Start()
    {
       
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetAxisRaw("Horizontal") > 0.5f || Input.GetAxisRaw("Horizontal") < -0.5f )
        {
            transform.Translate (new Vector3 (Input.GetAxisRaw("Horizontal") * moveSpeed * Time.deltaTime, 0f, 0f));
        }
    }
}

Have you set moveSpeed to some value in the UI in the Inspector window? The default value is 0, which would cause the player not to move at all.

yes i have set the move speed to 5