Problems with movement and animation

I am trying to program an animation in which my character’s gun goes into the zoom position. That is not working, AND the character will not move forward at the desired speed. What Do I Do?

I used the imported First Person player, created a gun with cubes, and made 1 zoom animation. I then programmed this code:

#pragma strict

var PlayerAnimSec : GameObject;

function Start () {


function Update () {
if (Input.GetButton("zoom"));

And now my player is moving forward at slower than a snail, but moving backwards fine. I need help- Getting the animation to work, but more importantly for my player to move.

I haven’t worked much with animations yet, but I can tell you that line 10 has “zoom” (no caps) but line 11 has “Zoom” (with caps). That might be of significance.