r/lua • u/Vegetable_Bobcat9654 • Jul 13 '25
what is the best way to learn lua?
I've been looking for ways to learn Lua for a while now but I cant seem to find any, does anyone have any ideas for me such as a book/website that worked for them. Thanks!
8
Upvotes
9
u/[deleted] Jul 13 '25
Did you look?
Like really?
4
u/MoSummoner Jul 13 '25
Make something, use google and Lua handbook to figure out how to do what you wanna do
3
u/Life-Neighborhood-82 Jul 13 '25
In my case, I liked a computer game with an active modding scene where all the mods are written in Lua.
Working with AI also helped break in to it but in hindsight it mostly gave me rigorous debugging skills and high blood pressure.
3
u/HiPhish Jul 13 '25
You have not given any context about yourself. What are you trying to build? Do you already have programming experience?
If you already know how to program the official Lua book (Programming in Lua) is very good. You can find the second edition for free online, or you can buy one of the later editions.
Lua is different from other programming languages in that you generally don't write standalone Lua programs (although you can do that), but instead Lua is embedded inside another application. So in order to make something useful in Lua you will need to learn first Lua the language, and then the ecosystem and libraries of the embedding program.
2
u/Geordyssj Jul 13 '25
Hola.
No hay mucha información disponible acerca de Lua, sin embargo, he encontrado información que me ha enseñado lo básico para poder tener algunas bases. Te dejo dos links, el primero es de un libro en formato PDF sobre Lua, y el segundo es de un creador de videos que hace juegos en Roblox programando en ese mismo lenguaje (lo que yo necesitaba en un principio), este último enseña muy bien.
Esperando que te sirva, me despido.
https://memoriascimted.com/wp-content/uploads/2023/05/Programaci%C3%B3n-en-Lua-Luis-Eduardo-Mu%C3%B1oz.pdf
https://www.youtube.com/watch?v=BSlGrDBLka4&list=PL14SLYIw8Yncstv8IrGNsiNBaN1Qj60Wr
2
u/redtonpupy Jul 13 '25
Don’t do like me, but…
Or more seriously: Just skip part 1, but spend more time on part 2.
That’s just my opinion, and you should still keep the lua documentation nearby when you are not really experienced.
1
u/c0gster Jul 15 '25
I would start by making very simple Roblox or love2d game. it doesn't have to be complicated, just functional. I would recommend Roblox studio over love2d starting out as it is kuch simpler and there are many guides.
Start by making a simple obby to learn the basics, then try something more complex, like a fighting, simulation, sandbox, or other small game. you can then use your skills for other lua applications, where tutorials / guides are less available.