What is the most effecient way of learning lua?

Hello devs, I have always wondered what is the most effecient way of learning lua.
A quick summary of me: “I have been scripting for over 2 years now ( I forgot everything about 6 months ago.) , and I still dont seem intermediate at all” , and I have been wondering what the most effecient way of learning lua?
And why?

4 Likes

The most efficient? Watch a couple YouTube tutorials and then try to create something yourself. Do tutorials on the DevForum, or create simple games.

1 Like

I started out watching youtube videos. I watched AlvinBlox.

1 Like

In my experience with Roblox, the first thing I started doing when learning how to code in Luau is try to play around with the keywords, watch AlvinBlox’s tutorials, and look at scripts from free models.

I’m currently learning how to use another game engine called Godot, and my goal is to add something small to my project every day, like formatting the code better and learning where to use const properly.

In order to achieve that and learn on the way, I try to look for a tutorial on YouTube or a documentation online specifically on what I want to learn. You could try doing the same, and remember to start really small.

Here's what I made so far lol

1 Like

The easiest way for me personally was simply reading documentation. Start simple, don’t think too far beyond your capabilities else you’ll just get lost. Think of your idea, figure out how you start your idea, do your research on the best methods (and why it is the “best methods”) to start. Practice it by making other simple code to make sure you’ve fully grasped onto what you’re doing if necessary (I would also add comments in my code to remind myself of what’s being done). Play around with your code a bit, try to have fun with whatever you’re learning instead of rushing past it to do something else, it’ll eventually stick with you and then you proceed with the next

2 Likes

There is no best or most efficient way of learning it. Everyone takes their time, works at their own pace, and their own way of learning. There is never a one size fits all solution, and most likely will never be one.

It’s often recommended you read into documentation to learn what specific things do, but for me the real teacher was experience. Where I would just play around with code to see what it could do, I would also play with other code to see what would happen.

2 Likes

Lol nice image, This is Lua right or a different language like python?

1 Like

Use some good YouTube videos. Not ones where they just show you how to do it, ones where they show you how to use code. Don’t use tutorials on how to do one thing, use videos teaching you ABOUT how to code IN GENERAL. You wont learn anything if all you know is “___” will eventually achieve ____, you gotta know HOW it achieves it.

I also recommend looking at other people’s scripts. It’s an amazing way to learn once you already know basic programming.

1 Like

Theres really no most efficient way. You won’t learn overnight, it’ll take a while, likely months. But personally, youtube tutorials didn’t really work for me. The way I learned, and the way I recommend most people to learn, is to look at existing code, and figure out how it works. Mess with it, see what ways you can change it, see what you can add, an you’ll eventually get the hang of it.

1 Like

Just watch some tutorials and try to script by urself, i once was making scripts like “script.Parent.players.Gui.StarterPack.Gun:Destroy”, like no joke. now i make mid games but they somehow work.

1 Like

GDscript, very similar to Python from what I know.

2 Likes

1.There is no efficient way, the thing that everyone is different, for example one person could watch a hundred of tutorials on YT and then he’ll become a master, other could learn other developers soo he would memorize knowledge he have. There are plenty of ways you can go, for example you could be better at specification or maybe on general scripting knowledge.

  1. If i were you, then i would find a good way, but there are few universal ways, when i started scripting 7 years ago i was younger and i didn’t know where to start, now i know that the best option is to make what you like.

  2. Re-Create things from other games, for example i love Forts, and then i could create cannon from it in studio, i would learn how to make a fire script, a mouse controll ect.

  3. Know that you need only basics to understand everything. Yep, think about this like that: everything in computer is true or false, simple math and conditions, loops and functions. Think about that if you know trigonometry a bit and some vector math, you can create working wave by addition and substraction of vectors, easy.

  4. Universal methoods:

A) Practice in your free time, sometimes making one small project is enough to understand one segment of Lua

B) Make research, both in studio and in internet. Soo i don’t see that many developers make this, correct me if i’m wrong, the thing is make a mini project without optimization and much effort to it, to see a possible way of doing something, for example you wan’t to make AI attack castle, but when it sees barricade, AI will attack it first, then castle, you don’t need to make entire model, simply castle is a red part, and barricade is a green part, when AI is blue part that moves or changes color of it’s target

C) Analyse everything before using it. If you will copy code from dev forum or tutorial, it’s not bad to use it, but be sure you’ll first analyse it, use comments and tell you what this does and what it use to do this

D) Contact with others, if you have friends that script too, you can make competitions in scripting one thing, or maybe make project with them, this will help make relations and memorize your knowledge

E) Make mistakes, yes this is strange but making mistakes make you learn from it, improve yourself, remember that no one can do everything first try

And the most important, make breaks, sometimes one thing will take you 3 months and one day you’ll find how to do this, good luck with scripting :}