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?
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:
Install Atom
Go to atom.io and install the text editor.
Install Lua for windows
Go to Releases · rjpcomputing/luaforwindows · GitHub
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 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 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)
Enjoy
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!
8 Likes
Thanks! I’m trying it out Awesome tutorial.
1 Like
sympoll
(sympoll)
May 1, 2020, 9:27pm
#3
Correct me if I am wrong, but this seems like a post that belongs in the #resources:community-tutorials category.
Sorbious
(Sorbious)
May 22, 2020, 6:31am
#4
My command prompt said atom is not recognized as an internal or external command, operable program or batch file.
How do I fix this?
1 Like
@sympoll
Fixed!
@Sorbious
Did you follow step 1?
Go to https://atom.io/ and install the editor before doing anything else
Sorbious
(Sorbious)
May 23, 2020, 4:40pm
#6
I fixed it now by watching some tuturials in Youtube because the step 5 only says “Give Atom access to environment variables” and it doesn’t have any steps on how to put it in your system that’s why it outputs an error when I’m trying to enter “atom .
”
From my knowledge, running “atom .” in cmd should automatically give Atom access to environmental variables.
You won’t have access to that command without having Atom installed though.
Can you link the video you found for this?
Sorbious
(Sorbious)
May 23, 2020, 4:52pm
#8
It’s not actually a video tutorial for “Lua for Atom” but it was for Python but in my case, my only goal is adding the path of “atom .” on the PATH of my system.
But here is the link:
1 Like
Ryfiles
(Ryfiles)
May 23, 2020, 9:31pm
#9
Not working, I even have it installed.
See I have it installed.
1 Like
I decided to make an easier text editor for running Lua.
Pocket Lua is out!
Note: My old username was dispeller. I go by ToldFable now.
http://toldfable.com/
I previously made a post on How to run Lua using Atom text editor .
While it’s cool to run Lua using Atom, there are a lot of steps to get things working.
Not only that but I got reports of things going wrong.
Troubleshooting is fun, but what if there was a better option?
Introducing Pocket Lua!
A quick and easy way to execute Lua code.
[PocketLuaWindow]
Pocket Lua is an app built using Electron and a seri…