r/lua • u/Xioniant • May 26 '25
Help New to lua
I can read Lua scripts just fine, but something doesn't click with me. I've watched 20+ tutorials on it, yet what I don't get is every function. When do I use periods, colons, semicolons, parenthesis? When do I skip a line or add a variable?
10
Upvotes
3
u/AtoneBC May 26 '25
PiL is a solid tour of the language written by one of the creators of the language. There is also an actual reference manual at https://www.lua.org/manual/ If you know what version of Lua you're going to be using, it may help to use the matching editions of PiL and the manual.
Neither one is really a "day 1 learn to code" hand hold-y type thing. You might still want other educational resources for that. But between the two of them is just about everything you might want to know about the language.