Learning scripting

As the new year comes to a start I want to meet some goals:

A goal of mine was to learn how to script which I hope to bring on, would anyone recommend anywhere I could learn properly how to script?
I am going to start slow so I can finally work on commissions for small games.

I hope you all had a great Christmas!

Go1_dyy

3 Likes

Lua is a hard language to learn, not because of the syntax, Lua has one of the most user-friendly syntaxes I’ve seen. However, there aren’t many resources, on other languages such as JS or C++ you have tons of websites to teach you, Lua you got a few youtube tutorials.

Start with the basics, learn variables, functions, events, etc. Don’t try too much or you’ll quit, know your limits, and don’t push too much outside of them.

It will not be easy, when you’re learning the functions, events, etc it looks super simple, but actually wrapping your head around the code and knowing how to put pieces together to make something will take practice. You can learn everything in a day, but until you can put everything together it will take a lot of time.

Like I said, the hardest part of programming is putting stuff together. It’s easy to thing “I want the car to turn right when I press D”, but you need to think “How am I going to make the car move?” “How am I going to make the car turn?” “How am I going to detect when a player hits D?”. Even those can be divided, for example the latter can be divided into “How do I detect when a player pressed a key?” and “How do I know if it’s D?”

Do not quit, it’ll be hard but programming it’s one of those things that when you understand it, it becomes super easy and straight forward. It took me a long time, who would’ve thought I’d be making things so complex in 2 years time. It takes time, a lot, but it’s super fun and satisfying.

Ultimately, you need to understand that coding is not for everyone. Yes it’s fun and interesting to look at code, but to actually be coding, debugging for hours on end, it’s not for everyone and you need to understand that.

6 Likes

Start with the simple stuff and watch some tutorials.
I would higly reccomend you to start with the simpler stuff such as dissecting the scripts in a dissapearing staircase from obbies.
Also, check out the API reference manual.

You’ll find anything you’ll ever need in there!
Also, a very weird tip: Fail faster.
So far i’ve got a lot of places with weird an bad scripting. Those failed. Now i can script pretty efficiently because i learned from those faillures.

1 Like

I dearly appreciate the help, how was your Christmas?

Thank you very much for the help!

Here, I’d also like to point out that you really, really shouldn’t go off-track and should follow a plan while learning scripting. I’ve had way too many people ask me to teach them the basics of scripting, and 10 minutes into learning they ask me how to make a cool fire sword.

1 Like

Exactly, take it slowly and don’t go too far out. But I also believe that you should push yourself, not just learn variables and memorize, learn how to do functions and memorize. Learn how to do functions, for example, and then make a function that returns the length of a String. Something simple, but requires thinking and understanding.

@Go1_dyy one of the best suggestions I can give you is, DO NOT memorize, understand. Do not read about functions and think “ah this is easy” and don’t practice. Don’t learn events, functions, etc without practice. Learned events? Good, not make a function fire when you press a button. Learned how to get values from objects? Good, now make a function that prints the length of a string in a TextBox. It’s those things you need to do, practice practice practice, not memorization.

3 Likes

This is exactly why i wouldn’t reccomend binging alvinblox.
You learn how to make a door, but then a bit further in the comment section of most of his videos, someone will ask: “How do i make this thing” Despite them already having all the tools from one or two of his videos.
By the way, remember, arrays and for loops are both magic and a massive headache.

1 Like

I never recommend alvinblox as a source to learn from, but if you can’t understand a lua documentation page, you can just reference his youtube channel for an hour-long explanation which can sometimes come in really handy for some people.

3 Likes

Yes that’s the problem with youtube tutorials. They don’t teach you how to make something, they tell you what you need to write, step by step, to make something. You can copy the code by hand but you will not learn anything, or barely anything.

That’s why Lua is difficult, other languages have Udemy, FreeCodeCamp, etc, Lua has… youtube tutorials

2 Likes

The amounttttttt of people asking why a copied script wont work is mindboggling.

3 Likes

lua does have the entirety of roblox wich is a huge advantage. a lot can be learned from here and the API reference manual

1 Like

Yes but it’ll never reach those other courses, FreeCodeCamp was where I learned HTML and CSS, it was mind blowing good, compared to Lua resources, other languages are a gold mine.

2 Likes

the discord.py docs are a pain to read

Was never into python, but some are a pain to read, yes. But I can speak from experience, Discord.js is really well documented

Can agree, coded a bot in both. It’s tree is very well organized.

In my honest opinion, the best way how to learn Lua is to try to make something, stumble across a problem and learn how to solve it.

You still need to know the basic basics, though.
I, for example, learned how to script without ever touching any tutorial, I analyzed free models’ scripts (I don’t recommend that though since they are often badly made). Then I used the API Reference when I needed anything that my knowledge didn’t cover.

1 Like

Is it possible to teach in Discord DMs? I could help with basic coding in LUAU (ROBLOX LUA)

I didn’t even bother learning LUAU until I needed to script a door. It just clicked in. It really amazed me and you probably won’t believe me, but I’m happy that moment came.

Sure! TwixerThunder#8537 is my discord.

2 Likes

You should start with a more structured programming language like Java. It will really help you understand all the details and get you thinking in objects instead of sequential programming. As you learn you will realize that you can make your code more efficient and increase performance. Coding is easy, but good coding can take years of practice.