Lua How To Exit
If you are here it is because you are looking for a way to exit Lua. You might be trying to exit the interpreter or you might be trying to exit out of a running script / program. Either way you can achieve this with the same line.
Just run this to exit:
The above will terminate the running script or exit the current interactive interpreter.