How do I learn to script?

Hi Devs, I’ve been developing games on Roblox for about 2 years now and about a year has been spent scripting. I know how to make basic and simple scripts. Recently my friend started learning to script and in only a month he was able to surpass what I know about scripting. I’m really confused and I want to know if there is a specific way or better way to learn scripting.

(and yes I’ve already used tutorials and google but I’m here at the forum to ask for other ways than just “google”)

1 Like
8 Likes

this, this, this is the most real, beautiful, amazing, sweet, neptune, loving reply ever

4 Likes

always try new things!
read/heard about a service you have never used? try it!
played a game with an intresting mechanic/feature? try recreating it!

The best way to learn how to script is by scripting. A lot of things in life are like that, simply doing it will make you better.

I still am pretty bad at coding and ive been coding for 3 years. It takes time, just make practice games. Like a simple simulator or obby, and work on coding new mechanics and testing your knowledge as well as expanding on it. Learn functions and loops, which are useful but for loops always confused me until recently.

Anyways, goodluck with your scripting going forward and remember to research, practice, and learn. :slight_smile:

1 Like

Instead of getting criticism for asking what is in reality a very important question, I’ll give you advice that I wish I knew when I started scripting, everyone else here is right but what they offer might not be the most optimal advice! I personally think that the best way to start is by understanding the core mechanics, learning proper script structure, knowing for loops and the basics of functions and PascalCase are all examples of techniques that you should know and will greatly help your scripting career, challenge yourself but don’t let AI script or YouTube videos script for you, and talk to other scripters to be up to date with modern scripting techniques and do commission work for money/connections.

2 Likes

I learned how to script by modifying free models and open source games. I started by only modifying simple properties that served as parameters, then small if statements and loops, then entire segments of code that changed the behavior of said free models and games, until I started modifying so much that eventually everything I wrote was mine.

I never tried to actively learn anything, it was a background process. I tried to do something, it failed, I googled the error up, repeat. Eventually I developed skills that are useful outside coding as well, such as:

  1. understanding errors/warnings
  2. being very good at debugging and figuring out which point causes issues
  3. being able to generalize a problem enough so there’s an algorithm/solution for it online
  4. being able to generalize problems enough for google to be able to help me, etc.

Also very often when I can’t find solutions for a problem, I tend to break it down to smaller ones, and try to search how to solve each individual part of it. Through that process, I often find the solution of some of the segments myself(because it requires me to process the problem in my head).

In general I think every person learns differently, but in order to optimally learn, you have to challenge yourself by interacting with the subject directly(getting help or copying is fine, its part of the learning process). Eventually your brain will do the hard part if you keep practicing, so it doesn’t have to think long before giving you the answers each specific time.

ChatGPT wasn’t around when I was learning, this is why I didn’t include it in my reply. It often does the above thinking process for you(for example finding a solution online and modifying it itself so it matches your problem). Although I’m unsure if it’s good to have it around as a beginner, especially if you rely too much on it or can’t validate what it says.

2 Likes