need some help minions spawn script

i made this script for minions to spawn but i wont work can someone tell me what i did wrong

var spawn : Transform;
var minionPrefab : GameObject;
var spawning : boolean = true;

function Start () {
spawnMinion();
}

function Update () {

}

function spawnMinion () {

while(spawning) {
yield WaitForSeconds(0.2);
Instantiate(minionPrefab,spawn.transform.position,spawn.transform.rotation);
yield WaitForSeconds(5);
}
} this is the error please help me

what is the error? can you copy paste it here?

i made a screenshot of it

yes its up there, but probably you posted the thumbnail of the image, not the full image. can you post the full image?

this is the link to the image https://lh4.ggpht.com/FO_zXqODYulqJjHFmS1MOFDxaTeNo9_GKFNXG4OOetcYdRsInQNy365nS3QPKQj6H9gkfx0=s136