I Have Been Trying To learn scripting for so long now. But, I always forget everything they teach me. I Have Tried People Like The DevKing and AlvinBlox. I never understand anything and all I can do is variables and printing. Please help me lol.
I never personally understand anything until I do it myself and practice
I see teaching and listening as a way to get started, while the real learning happens when you actually do things
Try doing small projects of realistic difficulties for your current level of expertise and slowly do harder and harder projects and challenge yourself
Basically, if you look at a video and dont practice it and do it yourself and challenge yourself in that way, it could cause you to not remember what they say
The first time ive started script (a few years ago), i was mostly going trough roblox forums and learning about basics (like functions, variables ect…). Watching tutorials on youtube is just copying and pasting a code into your game without knowing what it does and how it works. I prefer to learn the evening or morning (Because i memorize better than during the day).
Once you’ve understood the basics and what is lua, then here you can start small projects (Ive done 57 projects and they all are discontinued but i didnt give up!). If you feel like you dont understand something, find solutions or try something else. I dont watch tutorials on youtube, i instead use online forums as i said. When you go to look for a solution to your script or whatever you want, you may try to understand the code first and think 1 per 1 what each element does.
It’s important to practice after watching the youtube video. I dont remember a thing about the egg hatching tutorial, except the one piece I pulled out and customized (inventory system).
You need to understand the basics: loops, functions, tables etc. Then what I do:
- make a print script, that’s where I test that the functions are called at the right time and the right frequency. Set up the structure, but the only “stuff” in the script is a print command telling me I got to that point.
- if that works, set up the variables and tables. stop saying “I got here” and instead print the variables.
2a) pass the variables to the functions, print them there - do something with the variables in the functions. This is where you start testing new things. Run animations, make a calculation, clone something. If you can’t see it, throw in a print so you at least know you made it.
- return something from the function that you need. That could be as simple as a boolean that tells you if the attack hit.
- play the game a lot! break your code, go back and fix it
- make lists of things that need to be done, because you are going to forget them.
- don’t get too attached and move on after the code does what you set out to do. in a few months you will come back and hate everything. That’s a beginner coder for you!
The most important thing to know to learn how to script is doing it yourself. There is no way you’ll learn efficient by not doing it yourself.
if you haven’t, try? 
I’m currently learning step-by-step, and it’s going fine so far but I’m not a professional scripter yet. I would say intermidiate level of scripting. An easy way to get to this is to simply watch, try to make your own code and learn.
I learnt scripting by watching this series by AlvinBlox
After I saw all 23 videos I spent tens of hours on the devforum reading code.
Also don’t forget about developer.roblox.com, if you don’t know how some roblox api works.
How I learn about new concepts of scripting is:
- Step 1: Read Devhub
- Step 2 : See Videos
- Step 3: Read DevForum
Rinse and repeat. If I have trouble then:
- Step 4: Don’t Understand? Do step 1 and step 2 at the same time
- Step 5: Still don’t understand? Copy the script in video and study how it works
- Step 6: Still don’t understand again? Post a question in devforum and elaborate the parts that aren’t clear
For your information, I watched the DevKing Basic and Advanced series three times in a year.
I could’ve done it once or twice if I had done the steps above before.
If you don’t have determination, then don’t expect yourself to get better.
Hi, this was a problem with me too - and I’ve just recently overcome it and started to script.
One thing I realised while watching the You Tube tutorials - they feed code. You may argue about that, but it’s totally true, because they’re not teaching you application. They’re just teaching you functions and stuff which you might need in certain places. (No offense to any YT, they’re actually putting in a lot of effort)
When I found out that I wasn’t progressing at all, I switched languages - to Python. After learning the basics of Python (and some interesting modules as well), I returned to Roblox Lua, and found that I could somehow script (admitted - I had to go over the basic syntax and functions once.)
How? I thought over it and this was the result - coding anywhere isn’t about knowing functions/events/loops etc. Much more than that, it’s about the logic, and your approach to solving problems, and your decision making skills. If you have those, you can learn and use any language.
That’s my suggestion - don’t start with Roblox Lua directly. Start with another language, or maybe even Lua itself! Learn how to apply logic first, and then it will be nothing for you. Of course, you will need to learn basic stuff like loops and conditionals, but (I’m being repetitive now) - YOU.NEED.LOGIC.TO.CODE.
When you can figure out these basic codes by yourself (in default Lua, or any other language), try to come back to Roblox.
- Finding the factorial of a number.
- Printing the Fibonacci series up to a certain count.
- Make a number guessing game! (command line, ofc)
- Finding prime numbers within a given range.
- Checking if a word begins with a certain letter or not.
You can find tons of programmes for practice like that on the net!
Keep experimenting, keep trying and never give up 
Best of luck!
Personally I learned from the devforum, I tried videos before but they are outdated and many use annoying methods to acomplish a simple task.
Find something you want to do and script it. If you cant come up with sonething then script whatever comes up on the devforum
Yeah some YouTubers link all the code in the description for you to copy and paste but that doesn’t teach you anything other than using copy and paste features.