Javascript unexpect "f" value

For this code im getting an error saying:"BCE0043: Unexpected token: 2.0f.

-transform.up, out hitInit, 2.0f, initPosMask.value)) {extra code in

And for this code here im getting this error "BCE0043: Unexpected token: break. and BCE0043: Unexpected token: yield.

var break : yield;

Thanks for your time

You don’t need the ‘f’ there. Take it out. And you can’t do var break : yield. Yield isn’t an accessible type. Make break a float and then use yield WaitForSeconds(break);