Ways to learn Scripting

So method 1 find someone who can do it and ask him if he can learn you basic things
method 2 learn c# that is quite similar and there are much more tutorials on it
method 3 say to yourself for example “I want to say to chat hello when someone join” and google how to do it and try to program it

6 Likes

@mistr88 I wouldn’t learn c# just so you can learn lua as this will make learning lua a much longer process.


This topic has been asked multiple times before, please search before you post. Here is a few threads that are asking the same question as you:

You may want to read over these threads as they should be able to answer your questions.


Most people will say you should just insert free model scripts and just mess around with them. This is the exact way I started to script and the way a lot of people on here started. This process will help you with your problem solving skills as this an essential skill for scripting.

The best resource for me so far has been right here on the developers forum. Just reading topics people have created about different elements of scripting has catapulted my knowledge. Also if you are struggling with a certain element of scripting and you can’t find a video about it and you find the Developer Hub too confusing, then you should create a support thread about it on here. You could also use these forums to do the exact same method that I described above with code you find lying around on these forums.

Another resource is the Developers Hub. This place is very good for Api references and for brushing up your knowledge on some things that you have previously learnt.


Here is a few basic tutorials about some of the basic elements of scripting:

Developers Hub

YouTube

15 Likes

Personally, I just watch beginning to advanced scripting playlists and then proceed to read the whole Programming in Lua[Programming in Lua (first edition)] to learn the syntax, and then I use devforum and developer hub to learn everything about the Roblox API.

Edit: If you don’t like reading whole entire books you can use these videos instead(I recommend pil if you want to know everything about it’s syntax):[https://www.youtube.com/watch?v=Us46grT9wsA&list=PL0o3fqwR2CsWg_ockSMN6FActmMOJ70t_]

5 Likes

Me personally, I’m more of a hands-on learner. So, when I first started learning LUA I was making small things (with the help of the DevForum, and some YouTube videos) and I continued to slightly upgrade them from the previous. Maybe I’m changing that if statement, or adding another procedure, maybe experimenting with something else.

Another thing I also did was look at what other people were doing. I took what they had made, and learned new methods, this is how I learned debouncing.

Lastly, I looked in the scripting support category here to work through my head what I think is causing their error, and come back and see if I was correct, or if not learn what the pros were saying about it and learn from them.

Take your time, and go at your own pace.

5 Likes

Pretty cool to find my game in this thread. Glad you like it!

10 Likes

If you want some more answers, I made a post like this a while back that you can check out :slightly_smiling_face:

2 Likes

I say just what I sayed to other and all of them learned it and about c# if you learn console basic it is easier than solve (without knowing what does " do) what to put on client and server
But it is just tip and learn it how you want

Hey! I wish you best of luck learning. I’ve posted to help people learn about three times here is my recent one;
https://devforum.roblox.com/t/please-help-a-fellow-person-learn-how-to-script/316221/2

Here are some great ways, that’ll get you far ways.

Open free models, check their scripts, understand how they work, and try combining code!

  • This works most of the time, I helped many people learned how to code like this, once you get the hang of it you will be able to start scripting.

Use the DevForums

  • Another great resource is the ROBLOX official Developer forums, the site we are speaking on currently. This site can help you with any coding, building, just about any development issues.

Use the developer.roblox.com site

  • This site is a great site to learn scripting, here it is
    Roblox Developer Hub
    This is an amazing way to learn.

YouTube Tutorials

  • There are many YouTubers who can have great and helpful tutorials. If they provide the code in a model, try making it yourself instead of using the model. If your just using the model, try understanding how it works.

And finally, friends!

  • If you have experienced friends who can code, ask them for help, they most likely will help.

Don’t forget, you also need tons of patience to learn how to code. You have the good, and the bad, coding can get complicated, just never give up, you’ll be great at one point. Good luck!

~Kensizo :slight_smile:

6 Likes

It is obviously easier to learn lua if you already know an other language so learning any other language could be useful but I don’t know if the time taken to do that will be worth it

I’m not a scripter myself but I can give you a few tips, you can try YouTube as there a lot of YouTubers who makes videos to help you learn, if it lua then that my only choice as there not much things out there for lua.

Not worth it, I recommend starting off with LUA, and then moving to other languages like I did. Like English and Latin, LUA and other languages are similar.

For me it was good to know one side c# before client and server sides lua

Personally I already knew how to use python, learning lua was way easier except for the object being pseudo objects in lua.

Personally I started with lua but I did not know anything about strings,… and I stopped because it was too hard and I started with c# and when I returned to lua when perfectly knowing c# I easily understood what is the each side permission
(This int best method (because roblox rules) but with making OWN blank game and exploiting it, you will also learn what is client side permission)

The best way to learn lua is to code and code until you achieve what you want do it a lot and you will improve.

The best way to learn to code is to be dedicated, have patience, and be willing to step out of your comfort zone to learn new things.

1 Like

Good motto, but when its hard and you don’t know basic you will just copy from internet code that you don’t know what mean

The best way to learn to program is to practise, I know it sounds cleché but it is true, listening to endless tutorials will not help very much, however watching them and following along, understanding the code, changing parts to see what happens does. The reason I stress understanding is then you can use this knowledge to use in the future, blindly copying someone else’s code not knowing how it works does not help!

Looking through free model script and editing them can help you see how thing work, however, be careful of them because they can be written badly, causing your code to be written badly or contain malicious scripts to negatively affect your place.

Don’t start with something too complicated, if you think back to when you stared modeling, did you start with simple stuff or very detailed, highly complicated models? Choose something just above your current level to challenge you and build new skills for your next mini-project. When you feel more confident in scripting you can start bigger and bigger projects.

Don’t be scared to make mistakes, everyone makes them and learns from them, all programmers have made mistakes, except those who have not tried anything above print("Hello world"). All you need to do is try again, they shouldn’t hold you back in the slightest.

Remember, this takes time and keep a positive mindset (possibly the most important thing) if you start saying “I can’t do this” or “Everyone else is better” then it will become true, unfortunately, however if you start thinking positively along the lines “How can I solve this problem?” or “It’s getting there, just a bit more practice and I have this!” will go a long way. Anything is possible when you put your mind to it.

Once you have the basics, start learning how to write efficiant, secure and FE (Filtering Enabled) friendly code. This means when you start coding games, they will have a lower chance of being hacked and can be up on the platform (Non-FE games are not allowed).

Finally, have fun, there is no point learning to program if it is a chore! :smile:


Project ideas:

  • Color changing parts
  • Transparancy changing parts
  • Moving parts (Tweening and/or teleporting)
  • Creating parts with scripts
  • Basic math - Including algebra
  • Print your math answers using a loop
  • Make it so if your answer is smaller than 5 it prints something else.

Useful resources:
AlvinBlox
PeasFactory - Creator of Icecream Van Simulator
Roblox Intro to Scripting Playlist
Learning to Script podcast
Roblox API
Here on the Dev Forums! - Don’t be afraid to ask if it hasn’t been asked before!

6 Likes

Something that helps me a lot is to look in the ROBLOX library and find something that can be coded. Don’t open the item, but try to recreate it. Start out with something that you think would be easier, and work your way to harder things. Trust me, you’ll catch on very easily.


As said in previous comments, PeasFactory on YouTube is a great resource.


In my opinion, I think the best resource is the ROBLOX API. It really helped me, and I think that it will help you too.

Nothing beats this resource:
https://devforum.roblox.com/search?q=learn%20scripting%20category%3A55

1 Like