Camera View Change Script is not working. . .

I have a script that changes the 2D view into a 3D view (and 3D view into 2D view), here's the script -

  function Update () 
    {
            if(Input.GetKey("1"))
            {
                    GetComponent("SmoothFollow").distance = 0.0;
                    GetComponent("SmoothFollow").height = 20.0;
                    GetComponent("SmoothFollow").heightDamping = 0.0;
                    GetComponent("SmoothFollow").rotationDamping = 0.0; 
            }
            if(Input.GetKey("2"))
            {
                    GetComponent("SmoothFollow").distance = 10.0;
                    GetComponent("SmoothFollow").height = 5.0;
                    GetComponent("SmoothFollow").heightDamping = 2.0;
                    GetComponent("SmoothFollow").rotationDamping = 0.0;
            }
            if(Input.GetKey("p"))
            {
                    GetComponent("SmoothFollow").height += 1.0;
            }
            if(Input.GetKey("l"))
            {
                    GetComponent("SmoothFollow").height -= 1.0;
            }

    }

as you can see I'm trying to change the var's of the standerd asset script, SmoothFollow, and I add this script to the cameras in my scenes, but it doesn't work except for this one camera in one of my scenes. Please help me!

The code above is OK, but I don't completely understand your problem. You have several scenes? Each scene has more than one cameras? Is the camera you attached the script the main camera? Did you assign a Target the camera to follow smoothly?

If you have more than one cameras, you need to select which camera to render the scene. So, assuming you want the camera with the above code is the camera you want, attach the following camera selection script to an object in the scene, and assign cameras in the inspector:

var camera1: Camera; // In case this is the one with the above code.
var camera2: Camera;
var camera3: Camera;

function Start()
{
    camera1.enabled = true;
    camera2.enabled = false;
     camera3.enabled = false;
}

After this you can always change the enabled camera with additional script.

I should want to change my 3d person view into First Persion view when i press f1 and back
with the same button how do i make it

i have no script becase i im a completely beginer of unity 3d, sorry for that