Are you referring to Lua the language?
Or its implementation details (written in C)?
If the later, how does that make Lua, the language, bad?
I'm criticizing the implementation.
I have no complaints about the language (other than arrays starting at 1). I'm just salty because other people have said the implementation was really clean C, so I decided to spend a week porting it to C#, and I gave up. I could not figure out how closures were actually implemented, and I spent a day trying to understand it.
In particular, https://github.com/lua/lua/blob/master/ldo.h