I searched all this for the sake of it, but I cannot find it. Is there a way to execute a Lua script by double-clicking on it (execute it in Lua (Command Line) ) and save it after execution?
For instance:
print("Hello World")
This code compiles and runs, however, if I double-click hello.lua , it starts and closes immediately without leaving any text on the screen. I want something more similar, but without the need to switch to Command Prompt , changing the directory several times, typing lua file.lua , etc.:

source share