GettIng Error when trying to set a script to false

Hello, i have a script were im trying to make osme kind of pausemenu. Everything works but i really want it so the movement stops working when the game is paused. But when i try to set my movementscript to false, i get an error. “The name ‘Movement’ does not denote a valid type (‘not found’).”

Clearly it cant find the script, can soeone help me and tell me why it cant find it?

Thanks (:

#pragma strict

var PauseMenu : GameObject;
var mouseLook : Movement;

function Start ()
{
	Screen.lockCursor =true;
}

function Update ()
{
	if(Input.GetKeyDown(KeyCode.Escape))
	{
		var mouseLook = GameObject.Find("Player").GetComponent.<Movement>();
		
		//HERE IS THE PROBLEM
        mouseLook.enabled = !mouseLook.enabled; 
        //HERE IS THE PROBLEM
		Time.timeScale = 0.0;
		PauseMenu.SetActive (true);
		Cursor.visible = true;
	}
}

function BUTTONMainMenu ()
{
	Application.LoadLevel("MainmenuScene");
}

function BUTTONExit ()
{
	Application.Quit();
}

function BUTTONRETURN ()
{
	Time.timeScale = 1.0;
	PauseMenu.SetActive (false);
	Cursor.visible = false;
}

This isn’t valid

var mouseLook = GameObject.Find("Player").GetComponent.<Movement>();

You probably want the below. I never use Javascript so may have got the syntax wrong.

var mouseLook = GameObject.Find("Player").GetComponent("Movement");

Check the docs for more info: Unity - Scripting API: GameObject.GetComponent

The error occurs when the file “Movement” does not exist!

It is not even saying it cant find the component on the player. Its saying its not a valid Type. This means the class does not exist. This is easily proven by creating a new file called Movement.js. The error will go away straight away.

If you believe it does exist, open the Movement.js file and check that the Class name matches the filename exactly (although this may show a different error).