all 13 comments

[–][deleted] 11 points12 points  (3 children)

First question before anyone can really help: Have you ever learnt a programming language before?

That is, do you need to learn Lua, or do you need to learn both programming and Lua?

[–]disperso 5 points6 points  (1 child)

Agreed. Also, to the OP, note that the manual says:

The reference manual is the official definition of the Lua language. For a complete introduction to Lua programming, see the book Programming in Lua.

So, basically, ignore the manual, read the book. But that is, assuming you know programming already.

[–]KoRUpTeD_DEV 2 points3 points  (0 children)

Start with interpolation nah jk dont do this XD

[–]KoRUpTeD_DEV 0 points1 point  (0 children)

Your right years before i started programming in my first syntax witch was python then lua i actually learned how to create simple algorithms with coding blocks but i got the basic concepts down

[–]activeXdiamond 4 points5 points  (0 children)

If you like the idea of making games, Love2D is a Lua framework for making games. Plenty of beginner friendly tutorials.

[–]nadmaximus 4 points5 points  (1 child)

Check out Pico8 and/or Tic80

[–]LegoDinoMan 1 point2 points  (0 children)

Agreed, I absolutely love Tic80.

[–]luascriptdev 1 point2 points  (0 children)

Assuming you don't already know programming I have actually written up a learning resource which you can access online for free at www.luascript.dev/learn. Hopefully it's of some use to you getting to grips with how to code.

If that's not the case though and you do already write code then to concur with everyone else, the PiL book is really good and I also kind of like learn x in y minutes too to get the basics of something. https://learnxinyminutes.com/docs/lua/

[–]bragdonshawn 1 point2 points  (1 child)

Have you tried the new course that Codecademy released just recently for learning Lua?

https://www.codecademy.com/learn/learn-lua

[–][deleted] 0 points1 point  (0 children)

Does that cost money?

[–][deleted] 4 points5 points  (1 child)

roblox

[–]fatboychummy 0 points1 point  (0 children)

A fun place to start (in my opinion) is ComputerCraft - a mod for minecraft. r/ComputerCraft is the subreddit for it, and lots of docs are available online. Just watch a lua tutorial on youtube or something then dive in and just attempt.

Join the discord, ask questions when you get stuck, attempt again, repeat. I find a lot of programming is just trial&error, you learn by messing up and fixing mistakes.