what is wrong with my script

[5084-screen+shot+2012-11-19+at+6.21.34+pm.png|5084]

[5085-screen+shot+2012-11-19+at+6.23.01+pm.png|5085]

im also geting this error it looks like nothing is wrong with the script so can someone please help me?

normally id avoid posts like this, but it seemed simple enough instead of the usual white wash of code

glancing at it
id say that what is tripping unity up
is that yield break next to the if statement
it needs to be in brackets like everything else in an if statement

if(.......)

{ <------see brackets

      yield break;

} <------see brackets

perhaps you should look at some “Hello World” tutorials