LUA syntax error?

I’m trying to get LUA scripts working. I’ve tried hello world and esc usage and they both give this error

Capture

Any idea what is wrong?