Cursor Rules for Lua: 6 Rules That Stop AI From Writing Spaghetti Lua in Your Game Cursor writes Lua fast. The problem? It writes Lua like someone who read the docs once — global variables leaking across modules, nil access crashing your game loop, string concatenation in hot paths killing your frame rate, tables used as both arrays and dictionaries simultaneously, and zero error handling anywhe