How to change default FirstPersonController walkspeed from other script?

i need to only change the walk/runspeed of the playercontroller cause the player still needs to look around. code

		if (entered == true) {
			transform.position = seat.transform.position;
			this.transform.GetComponent<FirstPersonController> ();
			FirstPersonController.walkspeed 0f;
		}

nvm found my own awnser

public UnityStandardAssets.Characters.FirstPerson.FirstPersonController controller;

controller.m_WalkSpeed = 3f;
			controller.m_RunSpeed = 8f;

ty for the help though

Assuming the variable in the default FirstPersonController for walk speed is called “walkspeed” you can try:

GameObject.Find(“Player”).GetComponent().walkspeed = 0f;

Player = GameObject which includes the FirstPersonController Script.