I keep on making these types of topics because I dont know how to script but I am done with asking for help (no offense to anyone you all did a great job ) I do know the basic things such as print or wait() or brickcolor or stuff like that but I want to learn more about it. I want to basically know how to script more than that. Is there any classes or any suggestions I can take from anyone
also ps idk where to put this topic post
And also I kinda want to know how everyone else became good with scripting so I can use those methods.
I learned scripting in real life classes
I learned scripting through videos (YouTube, Twitch, etc.)
I learned scripting through watching tutorials and getting advice from other developers and experimented with these things myself to start creating my own scripts. It can be a little hard to get started scripting, but you should try and watch a couple of videos and if they contain a pre-existing script, then you should try and learn from that. You could learn by yourself by editing these scripts by yourself to see what is contained in the script and how everything works. Some code is self-explanatory such as
local minutesAfterMidnight = 0
while wait(0.1) do
game.Lighting:SetMinutesAfterMidnight(minutesAfterMidnight)
minutesAfterMidnight = minutesAfterMidnight + 1
end
will change the time in your game and is pretty easy to understand. If you need any help with tutorials or someone who you can ask for help from time to time DM me. If you prefer discord, my discord is Dreaming#6666.
It must be said, just reading a language’s reference, their handbook (if applicable), and looking at its examples or playground (if applicable)—while mildly tedious and mundane—is the best way to learn a language and to write idiomatic code for said language.
I’d urge others to not learn through videos, as those creators aren’t a true authority on the language, so there’s a chance they might gloss-over, poorly explain, or ignorantly omit important features of the language.
Classes are okay to learn logic and basic design principles, but as someone who has already sailed that ship, you shouldn’t rely on classes as they’re often outdated and the teacher, again, is not a true authority of the language. (Salute to anyone who took AP Computer Science in the States and then realized it’s not accepted at the college level for the reasons listed above.)
youtube is a great way for learning the basics, things like the devwiki are much less daunting when you have a firm grasp of the way lua works, id recommend devkings starter and advanced series for its consistent clarity.
You should start by watching youtube tutorials (I normally watched this guys videos, he’s great at explaining). Another thing you could do, is disassemble free models and study the scripts inside of them.
I learned how to script by giving myself a goal and working toward it. I only used the Dev Hub for the API reference, none of the tutorial stuff, since I already had a goal in mind that didn’t need tutorials as a crutch.
After about 3 months, I started actively applying my knowledge in places like the Roblox discord and the dev forums here in #help-and-feedback:scripting-support once I got access. Even before when I didn’t have access, I looked at a lot of the topics there and tried my best to create an answer for them, even if they wouldn’t see it, and continued working hard in the discord. A lot of the time, I got a lot of my contacts from helping out in the discord as well.
As for what that goal should be, it should just be based on what you really want to create. You should think of coding as a way to create anything you can imagine, not an obstacle against what you want to do. If you just thought up something you want to make, you should find a way to do it through Lua. Once you are done, you will feel proud of the accomplishment.
Usually videos are outdated and might use inefficient methods, or deprecated/superseded events/functions.
I personally learnt from using DevHub
and dissecting free models and looking up their functions/events etc on DevHub then making my own but trying to do it better, alongside the Hidden Developers discord while just talking in their #programming chat and trying to help.
Popular and good YouTubers
Peasfactory - old but good, not the best but better at explaining. TheDevKing - a lot of people in Hidden Developers seem to like him, personally never watched him.
Programming is a practical exercise, you wouldn’t expect to learn how to swim without flailing about in the pool first.
You can learn all the theory behind CompSci all day and still not be able to code (pretty common in UK universities). Just dive in: learn the basic syntax of languages through its documentation, trialing it out, editing parts of it to see what would happen (form not only a theoretical understanding, but a practical understanding too), graduate to attempting to program a small idea from scratch, keep developing that until you’d be comfortable taking on anything from the mundane to a large project. Supplement this with a lot of googling, and the odd book if you’re so inclined.
One caveat though, is that just because you know how to implement something, doesn’t mean you’d know how to get to that point. Listen to your Physics and Math teachers, I’m sure they suck, but a lot of the basic stuff they’re going to teach you in school will be applicable if you’re going to end up using this as a career.
Imho videos aren’t particularly helpful, they’re not going to teach you much other than to do one specific thing. Codeacademy and other websites aren’t too terrible to start off with, but you’re going to miss out on the experimentation.
I learned to script by tinkering with free models. A huge help to me is the API wiki, as pretty much everything you need to know is there.
Starts by doing simple property changes, then learn loops and tables, and just keep working your way up. Once you master loops and tables, you’ll be able to do a lot more than you thought you could.