How do I change my players move speed with character controller

Hi I’m sure that this is something really simple that I’m just missing but I cant seem to change how fast my character is going no matter what I make his speed here is the code

using UnityEngine;
using System.Collections;

[RequireComponent(typeof(CharacterController))]
public class MainCharacterMovement : MonoBehaviour 
{
	public float MoveSpeed = 10.8F;
	private Vector3 MoveDirection = Vector3.zero;
    
	void Update() 
	{
        CharacterController Player = GetComponent<CharacterController>();
		MoveDirection = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
		MoveDirection = transform.TransformDirection(MoveDirection) * MoveSpeed;
		
		//MoveDirection *= MoveSpeed;
		Player.Move(MoveDirection * Time.deltaTime);
	}
}

Your move speed is a public float. Are you changing its assignment in the script, or in the inspector?

Once you’ve set a public float in a script, Unity uses that value for the initial setup for its serialization, but from that point on any changes you do in the script for those values will be overridden by the inspector. Instead of changing the number directly from your script, look at it in the inspector sidebar.