Denote Valid Type

Hello My game was working fine but I am trying to use the jet pack found in the 3d platform tutorial pages 22-29 it worked fine until I improted the JetPackParticle script, I changed the ThirdPerson to player and now all I get is Player does not Denote Valid Type what I am trying to do is make the light and jet work when I jump it said to put it under the Player but I can because of the error Here is the script:-

private var litAmount = 0.00;

function Start () {

    var player : Player = GetComponent(Player);

    // The script ensures an AudioSource component is always attached.

    // First, we make sure the AudioSource component is initialized correctly:
    audio.loop = false;
    audio.Stop();

    // Init the particles to not emit and switch off the spotlights:
    var particles : Component[] = GetComponentsInChildren(ParticleEmitter);
    var childLight : Light = GetComponentInChildren(Light);

    for (var p : ParticleEmitter in particles)
    {
        p.emit = false;
    }
    childLight.enabled = false;

    // Once every frame  update particle emission and lights
    while (true)
    {
        var isFlying = playerController.IsJumping();

        // handle thruster sound effect
        if (isFlying)
        {
            if (!audio.isPlaying)
            {
                audio.Play();
            }
        }
        else
        {
            audio.Stop();
        }

        for (var p : ParticleEmitter in particles)
        {
            p.emit = isFlying;
        }

        if(isFlying)
            litAmount = Mathf.Clamp01(litAmount + Time.deltaTime * 2);
        else
            litAmount = Mathf.Clamp01(litAmount - Time.deltaTime * 2);
        childLight.enabled = isFlying;
        childLight.intensity = litAmount;

        yield;
    }
}

@script RequireComponent(AudioSource)

I think you misunderstood the tutorial, it says to put the jet pack under player in the hierarchy panel and not to rename any scripts, Player is a game object and not a component in the tutorial. Have a look at the completed example to see where the jet pack should be.

Leave the JetPackParticleController as it is:

private var litAmount = 0.00;

function Start () {

    var playerController : ThirdPersonController = GetComponent(ThirdPersonController);

    // The script ensures an AudioSource component is always attached.

    // First, we make sure the AudioSource component is initialized correctly:
    audio.loop = false;
    audio.Stop();

Yeah I sorted it out, sorry I forgot about this thanks anyways