Roblox Lua for Beginners - Learn Lua in 20 Minutes
ฝัง
- เผยแพร่เมื่อ 26 มิ.ย. 2024
- 🔥 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
Thanks for watching, hope this helped you all!
🔥 FULL ROBLOX LUA COURSE? Go to quizgrid.com to learn more!
yaaaas
how old are u?????
Didn’t you are to fast, not precisely eplaining the language in anyway
@@Kmon-ri6qi ikr!!!!!!
happy Lua
That first minute and 23 seconds had me motivated as hell.
You're an absolute legend.
Thank you those words mean a lot to me.
thanks ill skip that part
@@StrackIsBack bro couldnt resist being a dick
top tier glazing💀💀
facts
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.
I agree that it is good cuz it’s short but I wish I did understand at least some of it
@@quintezewright629 gotta watch other videos too bro. That’s what I did
Fr
@@Masterhong546 Fr Fr
This is just a refresher a brand new scripter wouldn’t understand a thing
This video is always saved in one of my tabs. Every single beginner guide I watch, they spend half the time talking about their new games they are making, asking you to like and subscribe, and just don’t really focus on their main topic. They also make everything look so easy. I love this video because it gets straight to the video. Also, more than half the video is focused on the main topic :). Underrated TH-camr honestly
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.
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!
i assume you use coding in it?
Glad I could help you out bro!!!
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.
how is it going
I'm glad I helped you out :) thanks for these words it means a lot to this community.
This is very helpful! I really liked how you explained each item in a concise, clear way!!
This completely helped me use raycasting besides other stuff.
This is amazing, I would recommend this for beginners.
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
at the end, its print(addnumbers(4,6)) i think.
oh and multiply numbers isnt +, its *
THANK YOU OKG
Thanks for making us this video. Makes it a whole lot easier to understand just by watching this video!
Glad I could help :)
ONE DAY OR DAY ONE? I’ve wanted to be a game designer my entire life. I’m currently entering my junior year of college as a game design major and I’ve been 3D modeling since I was 15 and programming since I was 11. I’m done waiting for the right moment. The moment is now. Thanks for the motivating beginning, man
the motivation part gave me some comfort :D thank you!
❤❤❤
Love this and love you! That energy is on point! Keep up the good work my man! Happy coding!
Happy coding man! ❤
having a motivational speech at the start of the video is insane levels of dedication
I'm glad I could help motivate developers like you ❤ stay positive brother
this was the best roblox tutorial i have seen, i have looked for a while
Amazing video, keep up the great work👍
Thank you so much! You keep up the great work scripting and I'll see you when you become a successful developer! :) ❤
Thank you!!!
I first thought that Lua was super different than Roblox Lua but it is a little similar! Thank you!
Bros barber did him dirty 💀
Bro needs to teach his barber how to script haircuts 💀
@@BAKON581 bro needs to code a refund lmfao 😂
@@S_auce 😆😆😆
Thank you I’ve been looking for this
:)
Single handedly the BEST beginner course to intro to lua.
Wow! I might try this tomorrow! Thanks! ❤
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
still does the same thing in the end doesnt it? i see it more as a preference
@@tinnyreviews you write less in the former so
@@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
I'm glad I could help. Any other questions you got make sure to reach out :)
TYSM!! You're a lifesaver!
Thanks you. Video was interesting and this will really help me in Lua learning. I'm Beginner and finally I can understand more.
❤ Thank you so much I'm so glad I could help you out
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!
Awesome video man, right now im taking notes and im in 4:33 minutes in and ive been writing for 1 and a half hours your are very informative
hey bro, my english isnt that good. Can you tell me what we learned from this? ty man
i'm a person who really wants to learn code and this really motivates me thank you dude!
Nice
no extra fluff just straight to the point
Glad I helped
bro i thought this is beginner friendly. I understood none😂@@TheRobloxCoach
@@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
Thank you, this was very helpful. Now I can start the roblox game dev journey
Perfect, much love keep it up ❤
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.
I'm also a french person trying to learn english lua
I’m also French and I’m trying to learn how to make Roblox games aswell
@@xlasherraiser7497 yeah, its a mix between c# and lua to make it easier for kids that want to script
The motivation part is much needed, keep it up!
Thank you, i definitely will keep it up! ❤
congrats on 6k!
BRO HAD ME HYPED UP AF
Im confused you went a litte fast
Pause the video. Slow it down. Multiple things you could have done. I understood perfectly because I used these methods. You can use them too.
This Tutorial helped me alot thanks!
Glad to help!
okay soo after some practicing and stuff i now got the basics ty
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.
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
@@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.
I'm glad I could help!
The tutorial we all needed
This the best roblox studio tutorial in my opinion, ty
Glad I could assist you.
I already knew how to code in python and java, so this just gave me nostalgia to my old coding classes...
Thank you Bro!
Honestly one of, if not the best Roblox Developer TH-camrs. 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👍♥
Thank you:)
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
@@Smurfis Don't forget CovertCode his series is just really good, but outdated since we don't know what happened to him.
@@Smurfis thanks! :)
He has a game? What one?
I love that coach's looking at our souls xD
xD anyways thanks for commenting bro keep learning more i believe in you!
im on minute three I can tell ill be learning a lot thank you. :edit: wow minute 6 helped so much
I come from Java and this is a great video that just helps me translate what I know from Java to Lua!!! Thanks!
No problem!
He just taught me how to use if else or elseif statements im definitely gonna keep watching this video.
thank you for not farming views over a 30 multiple video guide. I'm definitely subscribing for any more tutorials or showcases
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.
@@domtu7129 u can see this video and if u misunderstood thing, then go to the full explained video of this thing
We gon' create a SPFS Clone with this one
this is the most complicated video i have ever seen in my entire life
I didn't even get to the scripting part and I could tell I was gonna love this guy. Subscription earned
😊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💗!
How good are you?
@@voiddestroyer6471 im still pretty much a newbie but I take notes everyday and do simple project's/experiments on Roblox p
I doing great bro keep up the great work
Thanks ❤ you too bro
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?
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
Thx dude, helped me to understand that all code languages is similar to themselves like lua c# java and c++
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.
Thanks for this video, I learned so many things in one night! lol
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.
that is a good idea.
the lua deity has given us more divine knowledge
:D
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 👍👍
Honestly yea I moved out a couple months ago haha
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
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
no problem, and thank you for spreading positivity in the roblox coach community ❤
That intro tho >>>>
best tut ever
He had me sold in the first minute. lol. i'm locking in.
Thanks brother. Keep up the good work.
@@TheRobloxCoach your video really helped the development of my game thank you
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!
Bro was SELLING SCRIPTING like his life depended on if and i loved it . LET'S GOOOO
Your intro made me believe in myself. I'm hoping to utilize this tutorial for script creations for Transport Fever 2.
Glad to be a help. :)
The intro made me forget this was about Roblox 💀
What’s crazy is I’m doing Fivem GTA and I learned from this
ty
9:53 i need this :) ❤
I’m brand new to coding and Roblox Lua, where do you recommend I start to learn terms and basics in depth?
Hey bro how often do you recommend I pause this video to refresh my mind?
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
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.
For the people who are struggling, I’d recommend learning another language, such as python or JavaScript, build a couple projects, then come back, this will make LUa 10 times easier to understand
isn't lua is small and easier compared to python?
OMG THX ... no a serie of 6H ...
Bro just taught me lua in 20 mins W
This is the very first video im watching about scripting (Lua). my english isnt that good too so its hard for me to understand. What did we exactly learn from this vid? like when someone touched a block(umbrella) in certain weather circumstances there will be a dialogue? Please someone help me
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.
True. I'll try to improve that in my next videos!
Motovation💗💗
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.
And I could have chosen Love2D so i could make very cool 2D games (even cooler than Unity!!!!!1+1112)
That haircut😭🙏🧌🧌🧌
Ty
Ty now i made rells seas
❤❤
dont listen to that ronnie mcnutt pfp, this video was great and im so thankful for your guidance
W video
Thanks. 20 minutes is quite fast.
No problem glad I could help :D!
Just another question, would you say that your 1 hour video from before is still viable
Yeah just this is more updated and quicker
6:09 love how much trouble it is to say lol
good intro and stuff but like i wouldnt have clicked on the video if i didnt think i could or didnt want to
Is there any fee’s on the quiz grid website? And dose it offer more then the Roblox API documentations?
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.
"Why learn scripting you ask"
lol it's fun
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.
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
Bro lives in "the lvl you cheated" from backrooms
i thought the same
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