hi , please help me with this script ! after writing my program , it says you need to fix all compiler error to enter play mood .1)(20th line)unknown token: ). 2)(20th line)expecting ), found'.'. 3)(20th line)';'expected. Insert a semicolon

#pragma strict

var maxfalldistance = -10;
private var isRestarting = false;
var GameOverSound = AudioClip;
function Update () 
{
     if (transform.position.y <= maxfalldistance)
     {
     if (isRestarting == false)
        {
           RestartLevel();
        }
     }
}

function RestartLevel() {
    isRestarting = true;
    audio.pitch = 1;
    GetComponent().audio.clip = GameOverSound;
    audio.Play();
    yield WaitForSeconds (audio.clip.length);
   Application.LoadLevel("level01");
}

Script freezes because you use WaitForSeconds in function thats not coroutine?
Turn the function to IEnumerator?

Just change RestartLevel() to StartCoroutine(RestartLevel()); in Update.

MonoBehaviour.StartCoroutine