Have you tried this on a device or just in the simulator? We don't support runtime Lua compilation on the hardware. See this comment: