This post is superseded by Pocket Lua
You could go through these steps…
Or you could just get Pocket Lua!
Lua is pretty neat.
I frequently find myself using the lua demo website to test out small pieces of code.
Wouldn’t it be cool if there was an modern quick-to-open open-source text editor that could quickly run Lua?
Atom text editor is pretty neat.
It’s a modern text editor that supports plugins.
It’s also fairly quick to open.
With the Script package, you can use it to execute lua.
How to use Atom text editor to execute Lua:
Go to atom.io and install the text editor.
Install Lua for windows
Go to https://github.com/rjpcomputing/luaforwindows/releases
Download the latest Lua for Windows installer (currently the 2018 edition)
When installing, I recommend un-checkmarking the “Script Editors”
SciTE is an IDE with some cool features but you don’t really need it.
Install the Atom Script package
Go to https://atom.io/packages/script and hit install
It should prompt you to open Atom
If it doesn’t, open Atom and go to
File > Settings > Install
then search for the package “script” and hit install.
Install the Atom Language-Lua package
Install the “language-lua package” from https://atom.io/packages/language-lua
Click on where it says “Plain text” by default.
Then search for and select Lua
Atom should now do Lua syntax highlighting.
Give Atom access to environment variables
This is as simple as typing “atom .” into either your command prompt or Run window.
(Windows Key + R opens the run window)
You can execute the code you’re writing by either going to
Packages > Script > Run Script or doing the keyboard shortcut CTRL + SHIFT + B
Now you can type up and execute simple Lua code whenever you want, without having to open Roblox Studio. Happy scripting!