Roblox Lua for Beginners - Learn Lua in 20 Minutes
🔥 FULL ROBLOX LUA COURSE? Go to quizgrid.com to learn more!
Discord:
/ discord
Subscribe for more quick content just like this.
0:00 | MOTIVATION, WHY YOU NEED SCRIPTING
01:25 | Variables
02:32 | Instances, Editing Properties
02:33 | Strings
03:00 | nil
03:10 | Booleans
03:23 | wait()
03:35 | Numbers Do NOT Have...
03:46 | task.wait()
04:02 | Output Window, Practicing Print
04:16 | Math: Basics
04:40 | The Next Level... 👀👀👀
04:48 | Functions
05:00 | Functions: Parameters
05:26 | Functions: Returning
05:40 | Comments
06:00 | Scope: Global vs. Local
06:40 | Functions: Calling
06:46 | if Statements
07:00 | Equal to, ==
07:17 | Color3
07:45 | if Statements: else
08:04 | if Statements: elseif
08:30 | Events
08:40 | FindFirstChild()
09:16 | Humanoids
09:50 | Object Browser
10:09 | Loops
10:21 | For Loops
10:31 | While Loops
10:50 | Loops: break
11:05 | Debris Service
11:40 | Tables
12:00 | Tables: Key, Value Pairs
12:25 | Let's Practice!
13:35 | Error Handling: pcall()
13:50 | Time and Date Functions
14:00 | Metatables and Metamethods
14:10 | Debugging Strategies
14:25 | Script Performance: Optimization Techniques
14:35 | Understanding Script Context: Server vs. Client
14:50 | Modules: Importing and Exporting
15:10 | Advanced Scope: _G and _ENV
15:35 | Coroutines: Yield and Resume
15:42 | Objects: Advanced Properties
15:50 | Using External APIs
16:15 | Raycasting
16:35 | Remotes and Remote Functions
16:55 | Scripting Security: Best Practices
17:03 | The Future of Scripting...🚀🚀🚀
17:20 | Concluding Remarks
17:40 | Credits
Пікірлер: 405
Thanks for watching, hope this helped you all! 🔥 FULL ROBLOX LUA COURSE? Go to quizgrid.com to learn more!
@TheDevelopmentHive
8 ай бұрын
yaaaas
@azqatclabdullah9024
8 ай бұрын
how old are u?????
@Kmon-ri6qi
7 ай бұрын
Didn’t you are to fast, not precisely eplaining the language in anyway
@azqatclabdullah9024
7 ай бұрын
@@Kmon-ri6qi ikr!!!!!!
@baconheadgood
7 ай бұрын
happy Lua
That first minute and 23 seconds had me motivated as hell. You're an absolute legend.
@TheRobloxCoach
3 ай бұрын
Thank you those words mean a lot to me.
@StrackIsBack
Ай бұрын
thanks ill skip that part
@redcyc0
Ай бұрын
@@StrackIsBack bro couldnt resist being a dick
@z3r0g598__
Ай бұрын
top tier glazing💀💀
I loved this. It was straight to the point and I sorta needed this. Watched a bunch of beginner script series and don't feel like spending hours watching them for the 50th time. So, this worked as a refreshener for me, not too long, but not too short. Thanks to those beginner script series this refreshener made a lot of sense to me for certain codes.
@quintezewright629
9 ай бұрын
I agree that it is good cuz it’s short but I wish I did understand at least some of it
@coolkid7377
9 ай бұрын
@@quintezewright629 gotta watch other videos too bro. That’s what I did
@Masterhong546
8 ай бұрын
Fr
@simplywastakenfr
8 ай бұрын
@@Masterhong546 Fr Fr
@ztun.
4 ай бұрын
This is just a refresher a brand new scripter wouldn’t understand a thing
You know, I honestly think the underrated part of this was the Motivation, its easy to get demotivated and dissapointed with yourself while doing things like this, I think motivation like that is just what someone needs.
@TheRobloxCoach
3 ай бұрын
I'm glad I could motivate you a bit :) Keep learning and I wish you the best ❤
I've done a bit of Roblox Lua before, years ago when I was still young, it was what made me choose my course in Information Technology, this is such a great refresher coming back trying to learn this, wonderful video man!
@Skillz1023
4 ай бұрын
i assume you use coding in it?
@TheRobloxCoach
3 ай бұрын
Glad I could help you out bro!!!
Thank you!!! I first thought that Lua was super different than Roblox Lua but it is a little similar! Thank you!
This completely helped me use raycasting besides other stuff. This is amazing, I would recommend this for beginners.
I didn't even get to the scripting part and I could tell I was gonna love this guy. Subscription earned
i just started watching, but this look VERY friendly and worth it! I've always wanted to make my own roblox game but always struggled since most tutorials didn't show too much of the basics, or were WAY too long.
@Agrxssive
5 ай бұрын
how is it going
@TheRobloxCoach
3 ай бұрын
I'm glad I helped you out :) thanks for these words it means a lot to this community.
The motivation part is much needed, keep it up!
@TheRobloxCoach
3 ай бұрын
Thank you, i definitely will keep it up! ❤
this was the best roblox tutorial i have seen, i have looked for a while
Thanks for making us this video. Makes it a whole lot easier to understand just by watching this video!
@TheRobloxCoach
3 ай бұрын
Glad I could help :)
the motivation part gave me some comfort :D thank you!
@TheRobloxCoach
3 ай бұрын
❤❤❤
Single handedly the BEST beginner course to intro to lua.
TYSM!! You're a lifesaver!
Love this and love you! That energy is on point! Keep up the good work my man! Happy coding!
@TheRobloxCoach
3 ай бұрын
Happy coding man! ❤
holy shit i actaully know how to do basic lua now in 20 mins. like long frfr no cap I have learned more from this video then from any other videos in the past 4 years. THANK YOU MAN!
This video is more straight to the point than straight to the point itself its a quick tutorial about the basics of coding and teaches WAYYY faster than other coding tutorials i would reccommend and to the creator; you can do num += 1 instead of num = num + 1
@tinnyreviews
8 ай бұрын
still does the same thing in the end doesnt it? i see it more as a preference
@Akathysia
7 ай бұрын
@@tinnyreviews you write less in the former so
@Zudexa
6 ай бұрын
@@tinnyreviewsit’s less about preference and more about optimizing your code. Think of it this way if you’re using that string in a script lets say for example because you didn’t shorten your code 100 lines would be 20kb (not actually true, just an example for the sake of my point) but if you shorten the small things and optimize your code that 100 lines could get shortened to lets say 70 lines and the file size of the script would be only 11kb. The more you optimize your code the better things run as well since the computer is reading less to accomplish the same task. Now on roblox it’s not *necessarily* needed unless your making some huge game with multiple devs
@TheRobloxCoach
3 ай бұрын
I'm glad I could help. Any other questions you got make sure to reach out :)
Notes i took up to 6:31: Roblox Scripting Basics Variables: Stored To Replace Keywords To Different Keywords In Script Local: Defines The Scope Properties: The Elements Of an Object How To Change Properties In Script: local block = workspace:FindFirstChild("MyBlock") *Second Line* block.Brick(Property) = Brick(Property).new("New Propety") Strings: Sequences Of Characters Strings Examples: local myString = "Hello World!" ** Local Greeting = "Hello, " ** local name = "John" Combining Strings: print(String Name 1..String Name 2) Outcome: String Name 1 String Name 2 Example: print(greeting..name) Outcome:"hello John" Strings Effectiveness: Can Store Lines, Words, And Setences nil: Nothing/no Value Nil Example: local myVar = Nil Nil Example Outcome: game.Workspace.MyVar = nil Nil Effectiveness: Removing Variables Example: If you Put an Object in Nil, It Cant Be Effected In The Script And The Object Cant Effect The Script Raining: isRaining Variable: Var/myVar Block: block/myBlock wait command: Stops a Object/Variable For a Specified Time Example: wait(10) wait used in Command: print("1") Wait(10) Print("2") NO COMMAS IN NUMBERS: Example, 1000 *Correct* 1,000 *Incorrect* Second Hand Printing: local Line = FRR *Second Line* print(Line): When You Define A Scope To An Object/Variable You Can Use A Method To Print That Scope Out task.wait > wait Multiplication: * Division: / Subraction: - Addition: + Equal: = Paranthesis: () Functions: blocks of code that you can execute multiple times on command Function Example: local function sayHello() *Line 2* print("hello World!") *line 3* End what is "End": this marks the end of a block of code Functions And Combining Strings: local function sayHello() *Line 2* print("Hello "..name) *line 3* End *line 4* sayHello("John"), Outcome: Hello John Functions Can Also Return Values local localvar = "i am local" globalvar = "i am global" Example of math: local function addnumbers(num1, num2) print(num1 + num2) end addnumbers(4,6) Or local function Multiplynumbers(num1, num2) return num1 + num2 end addnumbers(4,6) If Anyone Can Correct Me Or Help Me I will be Appreciative
@SameForYouWasTaken
7 ай бұрын
at the end, its print(addnumbers(4,6)) i think.
@SameForYouWasTaken
7 ай бұрын
oh and multiply numbers isnt +, its *
@glowz4s
2 ай бұрын
THANK YOU OKG
Thank you I’ve been looking for this
@TheRobloxCoach
10 ай бұрын
:)
i'm a person who really wants to learn code and this really motivates me thank you dude!
thank you for not farming views over a 30 multiple video guide. I'm definitely subscribing for any more tutorials or showcases
@domtu7129
8 ай бұрын
The problem with these short videos is that he rushes and doesn't explain everything about a certain thing... While the Multi video series videos actually explain the things fully.
@user-bo2pb4ws7q
Күн бұрын
@@domtu7129 u can see this video and if u misunderstood thing, then go to the full explained video of this thing
This is the first time i actually understands the way he is explaining Lua. As a French person, learning English Lua is different, but i still can understands how lua works.
@likesmoi
9 ай бұрын
I'm also a french person trying to learn english lua
@Ohell-nl9dy
9 ай бұрын
I’m also French and I’m trying to learn how to make Roblox games aswell
@7MinutozRapsLetras
8 ай бұрын
@@xlasherraiser7497 yeah, its a mix between c# and lua to make it easier for kids that want to script
Amazing video, keep up the great work👍
@TheRobloxCoach
3 ай бұрын
Thank you so much! You keep up the great work scripting and I'll see you when you become a successful developer! :) ❤
Thanks you. Video was interesting and this will really help me in Lua learning. I'm Beginner and finally I can understand more.
@TheRobloxCoach
3 ай бұрын
❤ Thank you so much I'm so glad I could help you out
congrats on 6k!
Thank you, this was very helpful. Now I can start the roblox game dev journey
@TheRobloxCoach
3 ай бұрын
Perfect, much love keep it up ❤
What I love about this is that it just tells you all the important pieces without splitting them up into making 20 different microgames based around each mechanic.
@tomwestling1133
4 ай бұрын
youre not gonna learn unless you "split the up into microgames" do you honestly think scripting is easy? i came back to watch this as recap but i would never watch this as my very first scripting video, its so poorly detailed and youd learn absolutely nothing in the long run
@plipy101
3 ай бұрын
@@tomwestling1133 exactly, if you can't piece together the motivation to learn the basics of scripting then you will struggle to apply it even if you already knew it.
@TheRobloxCoach
3 ай бұрын
I'm glad I could help!
BRO HAD ME HYPED UP AF
Thank you Bro!
having a motivational speech at the start of the video is insane levels of dedication
@TheRobloxCoach
3 ай бұрын
I'm glad I could help motivate developers like you ❤ stay positive brother
I already knew how to code in python and java, so this just gave me nostalgia to my old coding classes...
Nice no extra fluff just straight to the point
@TheRobloxCoach
4 ай бұрын
Glad I helped
@radiantaction7325
4 ай бұрын
bro i thought this is beginner friendly. I understood none😂@@TheRobloxCoach
@guillermoaqv7461
3 ай бұрын
@@radiantaction7325 Thats because you dont even bother to learn the basics and dont even put effort to your projects you are just going to end up in a dumpster in life
im on minute three I can tell ill be learning a lot thank you. :edit: wow minute 6 helped so much
This Tutorial helped me alot thanks!
@TheRobloxCoach
3 ай бұрын
Glad to help!
Thx dude, helped me to understand that all code languages is similar to themselves like lua c# java and c++
The tutorial we all needed
This the best roblox studio tutorial in my opinion, ty
@TheRobloxCoach
3 ай бұрын
Glad I could assist you.
He just taught me how to use if else or elseif statements im definitely gonna keep watching this video.
😊im very new to coding, new year new me! Watching this was sooo confusing but its helping. I hope i can learn enough to develop my own Roblox game, thank you for your video💗!
@voiddestroyer6471
3 ай бұрын
How good are you?
@kawi3013
3 ай бұрын
@@voiddestroyer6471 im still pretty much a newbie but I take notes everyday and do simple project's/experiments on Roblox p
I come from Java and this is a great video that just helps me translate what I know from Java to Lua!!! Thanks!
@TheRobloxCoach
3 ай бұрын
No problem!
This was a very helpful tutorial, and I appreciate it very much, although it was really fast its understand able for a 20 minute tutorial.
i wathed lot of vidoes but i think this is the most helpful
Honestly one of, if not the best Roblox Developer KZreadrs. He actually has a successful game so you at least know what he's talking about and that he's a trustful source. Keep doing you man and keep up the great work👍♥
@TheRobloxCoach
10 ай бұрын
Thank you:)
@Smurfis
10 ай бұрын
So does TheDevKing, AlvinBlox and Suphi Kaner, but this is the first extremely useful resource I’ve seen posted by this guy no more short form content this is what you should do g
@1aboveall
10 ай бұрын
@@Smurfis Don't forget CovertCode his series is just really good, but outdated since we don't know what happened to him.
@TheRobloxCoach
10 ай бұрын
@@Smurfis thanks! :)
@tyridge7714
9 ай бұрын
He has a game? What one?
I am making a game with cars and so need it to learn lua for coding but this tutorial seems that it will learn me all the things I need
Thanks for this video, I learned so many things in one night! lol
I doing great bro keep up the great work
@TheRobloxCoach
3 ай бұрын
Thanks ❤ you too bro
I love that coach's looking at our souls xD
@TheRobloxCoach
3 ай бұрын
xD anyways thanks for commenting bro keep learning more i believe in you!
I love how I've heard 30 different versions of coding's useful speeches to the extent I just expect them at the beginning of any "lesson" or learn to code video
@CMO-jo4zv
6 ай бұрын
Also, thank you for being straight to the point and actually covering multiple codes. Not sitting there for 30 minutes explaining how one line of code says hello
@TheRobloxCoach
3 ай бұрын
no problem, and thank you for spreading positivity in the roblox coach community ❤
We gon' create a SPFS Clone with this one
Your intro made me believe in myself. I'm hoping to utilize this tutorial for script creations for Transport Fever 2.
@TheRobloxCoach
3 ай бұрын
Glad to be a help. :)
this is the most complicated video i have ever seen in my entire life
Hey RobloxCoach, I was wondering if you could make a tutorial how to make like a roblox boxing game? I mainly need punching, gloves, and dodges. I would appreciate if you did
Bro was SELLING SCRIPTING like his life depended on if and i loved it . LET'S GOOOO
The intro made me forget this was about Roblox 💀
hey, do you think you could code a keycard door , but the keycard hides when its clicked and checks a boolvalue in the player, and when you click the keycard reader it checks for the true bool and if its true opens? This would help a lot for my horror game.
@aliennathan6089
9 ай бұрын
that is a good idea.
i could have chosen unity but i've been passionate about roblox for years man. so many tutorials out there were made by or for kids, finally i found this hidden gem.
@Giuyo
7 ай бұрын
And I could have chosen Love2D so i could make very cool 2D games (even cooler than Unity!!!!!1+1112)
Yo man I’m thinking about buying your course, can you tell me a little bit about what it covers, also is it premade courses or is it live action?
dude that speech in the beginning gives me that 3AM motivation
you room looks like it would be perfect for playing VR games, nothing to hit nothing to knock over, clean room 👍👍
@TheRobloxCoach
3 ай бұрын
Honestly yea I moved out a couple months ago haha
best tut ever
9:53 i need this :) ❤
That intro tho >>>>
only thing i would recommend for the future is moving your facecam to a spot that wont block something you are actively typing/doing. other than that, great video!
Hey bro how often do you recommend I pause this video to refresh my mind?
i think roblox scripting becomes a lot more understandable once you learn a proper game engine because lua is way too limited in terms of syntax expression for OOP
@TheRobloxCoach
3 ай бұрын
That's true. It took me awhile to master. But was worth it in the end!
the lua deity has given us more divine knowledge
@TheRobloxCoach
10 ай бұрын
:D
Motovation💗💗
He had me sold in the first minute. lol. i'm locking in.
@TheRobloxCoach
3 ай бұрын
Thanks brother. Keep up the good work.
@femi_omoluabi
13 күн бұрын
@@TheRobloxCoach your video really helped the development of my game thank you
Took a 2 hour lua youtube course, should know some of the things to start. It didn't include roblox parts and such, but that's fine.
OMG THX ... no a serie of 6H ...
currently in college for web development so I understand the terminology but the syntax for Lua and roblox API is so foreign to me. I eventually want to move on to steam games but starting on roblox is a great way to put my name out there and show people what I got.
When you're the on making a tutorial you think it's very easy to learn from it but for the people who don't already know it it's just confusing lol. Though these tutorials are a bit easier to understand now that I know a bit of Javascript.
@TheRobloxCoach
3 ай бұрын
True. I'll try to improve that in my next videos!
Ty now i made rells seas
I’m trying to learn for a school project I’m gonna make a Roblox game for it LMAOO but I realized I actually don’t know as much lua as I need to and I have one week for this
Is there any fee’s on the quiz grid website? And dose it offer more then the Roblox API documentations?
@domtu7129
8 ай бұрын
Ik this is a bit late, but the Roblox API Documentations explain pretty much everything about a certain thing, pretty much like a Roblox Wikipedia, his course teaches you the fundamentals of how to script and other advanced stuff.
dont listen to that ronnie mcnutt pfp, this video was great and im so thankful for your guidance
What’s crazy is I’m doing Fivem GTA and I learned from this
its not about games its about DRIVE ITS ABOUT POW-
@medyassinchaal4784
8 ай бұрын
This comment deserves more than 6 likes
@TheDevelopmentHive
8 ай бұрын
@@medyassinchaal4784 y e s
@TMCT.22
8 ай бұрын
16 likes and only 1 reply? Lemme fix that
@TheDevelopmentHive
8 ай бұрын
@@TMCT.22 WOOOOOO
@TMCT.22
8 ай бұрын
@@TheDevelopmentHive WOOOOOOOO YEAH BABY THATS WHAT IVE BEEN WAITIN FOR, wooooooo
❤❤
what will the script do?
How much Lua do i need to know just for making obbies with some npcs with quests?
i need this
Can you teach how to make animation system like running, dashing
@TheRobloxCoach
10 ай бұрын
yea
6:09 love how much trouble it is to say lol
Bro just taught me lua in 20 mins W
Bro lives in "the lvl you cheated" from backrooms
@KlassicNotThatOne
2 ай бұрын
i thought the same
Just remember that learning to script takes a while and you won't master it in two weeks, just keep on going and don't get discouraged.
@shalekthewise
4 ай бұрын
Any helpful tips to learn better? Like watching videos, looking at open source games and trying to understand them, or looking at pre-made objects made by people?
Just another question, would you say that your 1 hour video from before is still viable
@TheRobloxCoach
10 ай бұрын
Yeah just this is more updated and quicker
Ty
4:17 love the part where i can see
Bros barber did him dirty 💀
@BAKON581
5 ай бұрын
Bro needs to teach his barber how to script haircuts 💀
yapping session 2.0 😭
This sounded like some sort of algebra lol.
My brain: Pcall = try catch
Thanks. 20 minutes is quite fast.
@TheRobloxCoach
3 ай бұрын
No problem glad I could help :D!
Yes, maybe for the English community it is easy to understand, but for people who are Spanish or speak some Latin language it is very difficult, you see, it has nothing to do with the language, but with the people who are in the language, lua works in English, and many Mexican or Latin-speaking people did not have or do not even have the opportunity to study English, so that is where the first complication comes, The second is that if there is someone who knows Lua in Spanish, it is very difficult for it to expand, because in most cases, either they sell you a non-existent course, or they simply make videos with "copy the script from the description" and it doesn't help at all There is no one who teaches us, much less who wants to teach us, I know it's shit, but that's life haha good video damn
Amazing
my brain: This is so easy, I can definitelly do it me one milisecond after opening the new script: nuh uh
i somehow closed the thing on the side on right PLEASE WHAT DO I DO?