My Lua code is throwing this error: [paste error message].
Here is the relevant code: [paste code].
Explain what went wrong in plain English, and provide the corrected
code with a comment on the fixed line explaining what changed.
