How to exit a Lua script’s execution? May 15, 2023 by Tarik Use os.exit() or just return from some “main” function if your script is embedded.