Access Unity 5 standard assets scripts(javascript).

Hi,
I have been brain storming all day on how to access the FirstPersonController script from the unity fps controller. Due to me being a such a noob can anyone tell me how to access it from a javascript and if possible disable it. I searched google for hours and didnt find any answers.

I would like to define a variable of it like so:

private var  fpsController : FirstPersonController; //fpscontroller script!

I would like to to create an if statement like this:

if (Input.GetKeyDown(KeyCode.Tab))
	{
		_fpsController.enabled = false; //disables the fps controller script
		camera.SetActive (false); // disables the camera

thanks for everyone willing to take there time to answer!

Learn about GetComponent
https://unity3d.com/learn/tutorials/modules/beginner/scripting/getcomponent

You can use this to get a component that is attached to a GameObject.

So you attach the FirstPersonController to your player (or camera or w/e) and then you use GetComponent to get a reference to it. You can then do whatever you want with it.