Script format error?

We can’t tell without seeing the rest of the script, but it’s probably an indentation error (or you’re missing a : at the end of an expression–something like that). There was a similar thread recently, you might try this: