Tables - Roblox Beginners Scripting Tutorial #17 (2024)

  Рет қаралды 61,852

BrawlDev

BrawlDev

Күн бұрын

Пікірлер: 425
@BrawlDevRBLX
@BrawlDevRBLX 6 ай бұрын
To clarify pairs() and ipairs(): pairs() is used to iterate through dictionaries ipairs() is used to iterate through arrays **only**. This is because elements in an array are numerically ordered, while a dictionary is unordered. I don't think I made that clear so my apologies.
@osakadev
@osakadev 6 ай бұрын
btw, ipairs and pairs are optional, yall can just do: for i, v in arrayOrDict do end and will work the same, but it's not recommended, so...
@الخلبوصة
@الخلبوصة 6 ай бұрын
@@osakadev Why isn't it recommended?
@osakadev
@osakadev 6 ай бұрын
@@الخلبوصة for readability and possible performance problems (even if it is too little). if you dont use pairs or ipairs, it does not indicate what kind of table is the one we are iterating just by looking at it, and we will need to go to see what we are iterating, and it is annoying, and roblox does not recommend it
@JaJuicy
@JaJuicy 5 ай бұрын
thats why when i tried to put i pairs on the menu version it didnt work brah lol
@CooperW-we5dz
@CooperW-we5dz 5 ай бұрын
Pairs() work completely fine for me in arrays and it’s in order the only difference between pairs() and ipairs() in arrays that I know of is that ipairs() if it reaches nil inside of a table than it dosen’t do the rest of the table unlike pairs()
@zawadgoat
@zawadgoat 5 ай бұрын
the thing is you got only few thousand views . but you decided to teach and continued . you deserve so much respect . i really appreciate it .Thanks
@Achilles-f9g
@Achilles-f9g 2 ай бұрын
31k
@Achilles-f9g
@Achilles-f9g 2 ай бұрын
he prolly made from between 15.50$ - 1550$ from this video most likely made something past 30
@NotSureIThink
@NotSureIThink 2 ай бұрын
"a few thousand" is still good, but your right, he does deserve the respect, its not easy teaching a language.
@MeowToonYT
@MeowToonYT 2 ай бұрын
@@Achilles-f9gI don’t think he’s monitized yet, since most of his vids don’t have ads
@YCre4tor
@YCre4tor Ай бұрын
@@Achilles-f9g You also realize the comment was from 3 months ago right?
@Joy327AA
@Joy327AA Ай бұрын
Hello, BrawlDev, This is my first time to write a comment in a video. I really wanted to become a dev in any game engine like Unity, Unreal Engine but because of my stupidness, even I learn the C# and C++ language, I didn't know how do I need to use it in that game engines. So I decided to start roblox studio because they use Lua language (which is very easy to learn compared to other language.) and I think roblox studio are very user friendly to use it. I watched all ur Roblox Beginners Scripting Tutorial and I'm thinking that I was really lucky that I clicked ur video. Thank you for make a GREAT Video, I learnt many things from your tutorials and I'm going to watch ur tutorials advanced version. Please give me a little luck for my next journey.
@taha9845
@taha9845 Ай бұрын
Good luck
@VictoriusXP
@VictoriusXP 29 күн бұрын
We wish you the best of the best
@Anoskagama
@Anoskagama 29 күн бұрын
Good luck BTW since it's been 5 days how is the tutorial doing?
@Joy327AA
@Joy327AA 29 күн бұрын
@@Anoskagama I tried to watch the advanced tutorial video. However just watching advanced tutorial and memorising was quite useless for me because as a student the new year has start so I also need to lock in on my studies and I keep forgot what I have learned in beginner tutorial, so now Im trying to make many games using the skills from the beginner guide. I made simple Obby, Horror, story, shooting, and adventure game and I will move to advanced tutorial soon.
@Anoskagama
@Anoskagama 21 күн бұрын
@@Joy327AA ahh i see
@gryal8143
@gryal8143 5 ай бұрын
26:45 we thank you more for all the tutorials
@Kyoryokuna_Fallen
@Kyoryokuna_Fallen 5 ай бұрын
We appreciate the tutorials BrawlDev :)
@dk1453c
@dk1453c 6 ай бұрын
Thank you so so so much for your tutorials! Love them and learned a lot!
@cobyjacob2054
@cobyjacob2054 6 ай бұрын
-- Buying from a menu local menu = { ["Burger"] = 15, ["Fries"] = 5, ["Cola"] = 4, ["Milk"] = 3, } menu["Burger"] = 12 print(menu["Burger"], " dollars for a burger,", menu["Fries"], " dollars for fries and", menu["Cola"], "dollars for a cola") print("That would be", menu["Burger"] + menu["Fries"] + menu["Cola"], "dollars in total!") -- Output 1: 12 dollars for a burger, 5 dollars for fries and 4 dollars for a cola -- Output 2: That would be 21 dollars in total!
@JohnPaul-v2f
@JohnPaul-v2f 4 ай бұрын
@cobyjacob2054 1 month ago -- Buying from a menu local menu = { ["Burger"] = 15, ["Fries"] = 5, ["Cola"] = 4, ["Milk"] = 3, } menu["Burger"] = 12 print(menu["Burger"], " dollars for a burger,", menu["Fries"], " dollars for fries and", menu["Cola"], "dollars for a cola") print("That would be", menu["Burger"] + menu["Fries"] + menu["Cola"], "dollars in total!") -- Output 1: 12 dollars for a burger, 5 dollars for fries and 4 dollars for a cola -- Output 2: That would be 21 dollars in total!
@overanimatetadchon7642
@overanimatetadchon7642 2 ай бұрын
One month ago💀
@koftatech
@koftatech 2 ай бұрын
@@overanimatetadchon7642 1 day ago
@THIRD0612
@THIRD0612 2 ай бұрын
⁠@@koftatech 10h ago
@md-hassan-gi3mo
@md-hassan-gi3mo 2 ай бұрын
@@THIRD0612 3 days ago
@N_MoreCurious
@N_MoreCurious Ай бұрын
Here is my code, I would have never done this without this video made by BrawlDev! local myArray = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} for _, number in ipairs(myArray) do print(number) end local shop = { ["Sword"] = 25, ["Syth"] = 50, ["Katana"] = 100, ["WoodenSheild"] = 150, } for shopItem, price in pairs(shop) do print(shopItem, price) end local model2 = game.Workspace.Model2 for index, part in pairs(model2:GetChildren()) do print(part.Name) end Thanks for everything BrawlDev!
@vmc-mal
@vmc-mal 6 ай бұрын
Mannnnn, I am finally done and yeah! I have learned quite a lot throughout this playlist/tutorial guide... Excited to do the next video (Making an actual game >:))
@DanTe3_
@DanTe3_ Ай бұрын
ngl... this is THE DEFINITIVE beginner's scripting playlist for those who REALLY want to understand something about this language! Very helpful tutorials and good videos in general! Can't wait to see what the advanced and GUI's playlists have to offer!
@aqibshariff7558
@aqibshariff7558 Ай бұрын
how much harder does the advanced one feel?
@DanTe3_
@DanTe3_ Ай бұрын
@aqibshariff7558 As hard as this last episode. But its really easy to understand once you play attention! (Im not english so all these tutorials are 10% harder for me to understand, but no worries! He explain everything with such a clever english that i can understand it on my own!)
@aqibshariff7558
@aqibshariff7558 Ай бұрын
@@DanTe3_ I'm happy to know that
@aqibshariff7558
@aqibshariff7558 Ай бұрын
@@DanTe3_ and the last i was going to ask you is that which one do you reccomend me to do first the ui or advanced scripting guide or even both
@DanTe3_
@DanTe3_ Ай бұрын
@aqibshariff7558 In my opnion, go with the GUI's First, you already learned how to code the basics, so its better to take a "break" from the coding section and go for a different route that ends on the same path. Quite like as if it doesnt matter what you pick first because you will need both of the knowledge from the GUI's and Advanced Scripting to make a actual good GUI system
@bunnyvvabbit
@bunnyvvabbit 23 күн бұрын
thank you. im about to head to the last beginner tutorial guide and so far this is the only playlist that has actually been helping me understand how to code and i really mean it. you deserve more subs man
@bazerduck1234
@bazerduck1234 6 ай бұрын
thanks for being consistent!
@weslyn989
@weslyn989 Күн бұрын
I have watched all the Roblox Begginer playlists you made, first I want to thank you, with your videos I learned a lot of Lua language which from the start I didn't know anything about, now I can know the basics of Lua knowledge, maybe without all these videos I wouldn't understand Lua .Thank You
@kaicamry2894
@kaicamry2894 5 ай бұрын
Thank for these tutorials they were great now I can move on to the advanced tutorials.
@gustavoachutti
@gustavoachutti 26 күн бұрын
Changing block (on touch): local cube = script.Parent local myC = {"Really black", "Smoky grey", "Institutional white"} local a = true cube.Touched:Connect(function(otherPart) local humanoid = otherPart.Parent:FindFirstChild("Humanoid") if a == true then a = false if humanoid then local cubeSize = math.random(1, 9) cube.Size = Vector3.new(cubeSize, cubeSize, cubeSize) cube.BrickColor = BrickColor.new(myC[math.random(1, 3)]) end task.wait(5) a = true end end)
@sammyawad4933
@sammyawad4933 6 ай бұрын
i have a notepad to help me follow along with studio bc my attention spans crap and i think i wrote down everything u said lmao. great vid
@pocketsz1
@pocketsz1 5 ай бұрын
Thank you so much for these tutorials, they helped a lot and are well organized :D
@Yassin-d7h
@Yassin-d7h Ай бұрын
i have had lots of experience with scratch coding and i feel like i made every game possible on scratch and wanted to move to something bigger and this series has helped me learn this type of language because the jump from moving little blocks, to writing full on sentences is a big leap for me. I thank you for helping me and i hope i will be able to make the games i always wanted in the future.
@RNC-o6u
@RNC-o6u 3 ай бұрын
Thank you so much, even though your views may not show it ( 15k + per video is still a lot ) but personally I think you deserve a lot lot more, it's taught me a lot, my motivation to start making Roblox games has skyrocketted and I finally feel as if I'm actually getting my favourite game into a career. Thank you BrawlDev.
@goodnoob857
@goodnoob857 6 ай бұрын
I think after these all series I am not beginner programmer but I feel like intermediate programmer with you
@trikymirkygaming2701
@trikymirkygaming2701 5 ай бұрын
Don't take it bad but you aren't.
@okinawakor
@okinawakor 4 ай бұрын
@@trikymirkygaming2701 u did not have to be negative for no reason u dont know how good bro is lower ur ego
@SniffishBowl
@SniffishBowl 4 ай бұрын
​@@trikymirkygaming2701You don't even know this guy 💀
@Apple_Tie
@Apple_Tie 4 ай бұрын
@@okinawakor he said he feels like he is intermediate
@fandedeto4603
@fandedeto4603 4 ай бұрын
@@trikymirkygaming2701 lol
@erdiicraft3370
@erdiicraft3370 6 ай бұрын
local lvl6 = game.Workspace[" Levels"].Level6 local part = {lvl6.Part, lvl6.Part1, lvl6.Part2, lvl6.Part3, lvl6.Part4, lvl6.Part5, lvl6.Part6, lvl6.Part7, lvl6.Part8} local num = 1 while true do part[num].CanCollide = true part[num].Transparency = 0 task.wait(1.5) part[num].CanCollide = false part[num].Transparency = 0.8 num = num + 1 if num == 10 then num = 1 end end -- that going to make a obstacle move forward and backward
@xans7869
@xans7869 Ай бұрын
Finally Finished the tutorial after two weeks im so excited to begin my journey as a devloper and hope that one day i'll be able to look back on this tutorial and thank you once again. Thank you BrawlDev
@BarcaFan57299
@BarcaFan57299 2 күн бұрын
I feel like this series is study and this video is before the exam
@Artyihdhdh
@Artyihdhdh 2 ай бұрын
Best roblox studio scripting tutorial ever
@ItzRealImro
@ItzRealImro 2 ай бұрын
fr
@battlemaster682
@battlemaster682 13 күн бұрын
I watched this entire tutorial guide in 2 days and I’ve learned so much thank you
@Frozey_roav
@Frozey_roav 4 ай бұрын
*DICTIONARY WORK* _Heres what I did for the dictionary:_ local menu = { ["1"] = "Cheeseburger", ["2"] = "Coke", ["3"] = "Hamburger", ["2"] = "Pancakes", ["1"] = "Bacon & Eggs", } print(menu["1"]) *ANSWER = "Bacon & Eggs"*
@warm.8807
@warm.8807 6 ай бұрын
dope man, learned a lot from your tutorials thank you
@KostumasFacts
@KostumasFacts 4 ай бұрын
The best roblox studio teacher ever😅Thank you so much for everything ❤
@nzm_f6425
@nzm_f6425 4 ай бұрын
For me who has only learned backend C++, array = {10, "string", true} looks crazy
@mufradr
@mufradr 3 ай бұрын
Is it cus the variables aren’t typed? I’m pretty sure u can do it in Roblox lua but it’s not required
@TropialGamingYT
@TropialGamingYT 5 ай бұрын
Took me a whole week to work through this and it was worth it i now know what tutorials talk about and also code my own small games like an obby
@JustASimpleMan07
@JustASimpleMan07 2 ай бұрын
a week? this took me 3 days 💀 maybe i went to fast
@vittoriovenetov9655
@vittoriovenetov9655 18 күн бұрын
@@JustASimpleMan07 1 night
@combo366
@combo366 12 күн бұрын
@@JustASimpleMan07the difference is they will actually remember it and u wont
@JustASimpleMan07
@JustASimpleMan07 12 күн бұрын
@@combo366 well I haven’t scripted in weeks and I still remember
@zerdtheg3995
@zerdtheg3995 4 күн бұрын
@@JustASimpleMan07It’s way better to do it under a long time period, small steps by a time so that ur brain can process it better and so that it doesn’t overburden you. Spending several hours in one day will make you burnout and it will be too much overload in information.
@Nxvaciel4198
@Nxvaciel4198 2 ай бұрын
i made a script where i added a noob to workspace and a table of all its parts and colors except humanoid: local noob = game.Workspace.Noob local humanoid = noob:FindFirstChild("Humanoid") if humanoid then humanoid:Destroy() end for index, part in pairs(noob:GetChildren()) do print(index, part) print(part.BrickColor) end thanks for teaching us, this is probably the best tutorial series i watched so far
@CheeseY420
@CheeseY420 6 ай бұрын
your kinda wrong with the pairs and ipairs part, because ipairs iterates through arrays, while pairs iterates through both arrays and dictionaries. Meaning you can't use ipairs with dictionaries, only arrays.
@BrawlDevRBLX
@BrawlDevRBLX 6 ай бұрын
Good catch! Although the documentation says pairs is only used with dictionaries, while ipairs is used with arrays. They recommend using a combination of the two for full capabilities (depending on the problem).
@Evil_inc
@Evil_inc 20 күн бұрын
thanks, I was real confused with ipairs
@rodneysot
@rodneysot 5 ай бұрын
My little script local smallSupermarket = { ["Apple"] = 5, ["Banana"] = 3, ["Mango"] = 8, ["Bread"] = 2 } for index, i in pairs (smallSupermarket) do print(index, i) end
@aaaaaaaaaaaawda
@aaaaaaaaaaaawda 2 ай бұрын
i tried jumping straight to the final game n obviously didnt figure out how to make the game.. so i just did the whole beginner tutorial quickly n im so excited to retry the final game! great tutorial brawl
@supergamio6493
@supergamio6493 Ай бұрын
*Slightly sobbing at the last learning objective*, And I never did any of the learning objectives you gave us...
@WhenAllTheWarmthLeavesUs
@WhenAllTheWarmthLeavesUs 9 күн бұрын
Do them bro, it will make you actually learn better.
@kabato88
@kabato88 6 ай бұрын
Fr u save me bro i was a completly nooby in script and don't even know about anything, but now i fell i can finnaly progress by ur tutorial TYSM !
@16xgod-b2b
@16xgod-b2b Ай бұрын
Thank you for all you've done, hoping to see the first game
@Nox2000YT
@Nox2000YT 5 ай бұрын
These tutorials are so helpful! I have no idea how I could've learned Luau without this tutorial.
@aleksanderagren6360
@aleksanderagren6360 4 ай бұрын
i love this chanel, i have always had a deep intress in coding but found it to daunting to begin to learn but this chanel broke it down to bite sized pieces for me
@space.13311
@space.13311 Ай бұрын
local shop = { Sword = 25, PotionOfHealing = 30, BookOfKnowledge = 50, Food = 15, Water = 5, } local function buyItems() print("Welcome to the shop, here are the items:") for shopItems, value in pairs(shop) do print(shopItems, value) end end buyItems() local inventory = { "sword", "potionOfHealing", "BookOfKnowledge", "Food", "Water", } print("Thank you for purchasing the items below: ") for _, inventoryItems in ipairs(inventory) do print(inventoryItems) end thanks ,is this good?
@gianniaffe4378
@gianniaffe4378 Ай бұрын
Thats actually really good and creative! Keep going bro
@space.13311
@space.13311 Ай бұрын
@@gianniaffe4378 thanks, you too
@samwelsh2451
@samwelsh2451 21 күн бұрын
nice work bro
@ForTheMemes
@ForTheMemes 5 ай бұрын
thank you, this journey was really helpful !
@seandorama5932
@seandorama5932 6 ай бұрын
Taking Notes :D (ironically here’s a note for me or anyone else reading, most these timestamps aren’t accurate I just subtract like 1-3 seconds from where I stopped to take down notes) 1:03 So tables are kinda like variables but they can *store multiple kinds of data* (examples so far have been numbers, booleans, and strings) 2:13 Tables are made using {} and are done in an order? 3:04 and 3:12 They’re done from left to right, which the first/leftmost value having a positional value of 1, which each next one being a higher number (the second value’s got a position of 2, the third has a position of 3, etc.) 2:42 To add another piece of data/value you just to need to use a comma before adding another one 3:12 to access data inside Arrays you need to use their positional value in the table. And then use [] with their positional value to access it like this 4:04 4:51 to print out all everything in the array you gotta make a for loop (lol I basically paraphrased what you said) 4:57 the loop’s starting value will use the first positional value in the array, which is always 1 (although maybe I could skip the first value by making it 2 but I have no idea if that would work or if that has a use) 8:14 Perfect explanations as always (this is literally the 2nd video I’ve watched from you XD) 9:06 so that’s what “i” means, “index”. I was always confused on what it meant when I saw it in scripts and dev forums Now what does index mean XD 10:22 Once again, perfect 👌 also yay now I know what an Index is… a table’s positional value 💀 Well I will be calling it index from now on it’s so short and simple compared to typing out positional value. Also I’m gonna type the rest of this in the comments of my own comment since this main one is bugging out like hell because I’m on mobile
@seandorama5932
@seandorama5932 6 ай бұрын
11:09 so table.insert uses values/the kind of data you wanna put in, but table.insert uses the position of the existing value you want to remove
@seandorama5932
@seandorama5932 6 ай бұрын
11:56 the lame and long way 💀 12:49 the cool way 😎
@seandorama5932
@seandorama5932 6 ай бұрын
13:43 I’m confused on how this works or why you’d need the index but cool
@seandorama5932
@seandorama5932 6 ай бұрын
14:07 NOOOOOO NOT MORE TABLES ARGHGHTHTHTHGHGH-
@seandorama5932
@seandorama5932 6 ай бұрын
15:01 So basically Dictionaries are Arrays but the items inside are also variables. Or I guess a better way to describe them would be before with Arrays you had a shelf with a plaque and boxes tagged with numbers on the side (that also automatically change based on where they’re placed… don’t ask how) but dictionaries are the same thing but the boxes have a plaque/name too! 16:57 dang guess my first analog
@Finn97216
@Finn97216 15 күн бұрын
Thank you for this Guide! You are so underrated
@imnotnostalgia
@imnotnostalgia 5 ай бұрын
UPDATE: If you do print(myArray) now, IT WORKS! This is what the output looks like: OUTPUT: [1] = 10, [2] = "string", [3] = true, [4] = 500
@Maid_gam3r
@Maid_gam3r 4 ай бұрын
apparently, this just works for dictionaries, if you just do normal arrays, this wont appear. edit: even for dictionaries its not working to me, so idk
@ManCatGravy_PlaysRusso
@ManCatGravy_PlaysRusso 3 ай бұрын
@@Maid_gam3r works i just tried it, pretty lifesaving tbh because it was kinda extra (although minor)
@Maid_gam3r
@Maid_gam3r 3 ай бұрын
@@ManCatGravy_PlaysRusso at least when i tried with normal arrays, it didnt worked.
@XemnaSoul
@XemnaSoul 3 ай бұрын
Thank you so much of these tutorials!
@nishantbista6353
@nishantbista6353 6 ай бұрын
This is the best tutorial i need so far for simulator games thank you so much
@Mr_TopMan
@Mr_TopMan 6 ай бұрын
No way you actually did a tutorial at table lets goo!!!!! keep making good video man
@fascinatingfaux811
@fascinatingfaux811 6 ай бұрын
Not related to the video but I made a fog using the info from this tutorial that slowly deals damage like the storm from Fortnite. It doesn’t move yet but this tutorial has taught me tons. Thanks for the help dude!
@hechiv6085
@hechiv6085 6 ай бұрын
Bro's speedrunning the scripting series Just kidding. I've been able to study scripting consistently because of your consistent uploads. Thank you, man💯
@hotboxuzi2588
@hotboxuzi2588 16 күн бұрын
Thank you for your work. Its been Crucial for me.
@PatPat647
@PatPat647 6 ай бұрын
Thank you so much! I want to make a game on Roblox which looks like it could be really popular. I am on my own and I don't like to hire people! I'm good at making models and maps and the scripting was the only thing stopping me! The game i am making is my first one and it will be really good!
@Vertect
@Vertect 6 ай бұрын
Could you provide a quick summary of your game? I agree with you; I can model, build, and design, but I don't have experience with scripting. I think it's more beneficial and rewarding to learn everything on my own rather than paying someone else to do it!
@PatPat647
@PatPat647 6 ай бұрын
@@Vertect sorry man. I kinda wanna keep it a secret but it is based on a murder mystery game. Mine has lots of differences I don't want to share at the moment. I will reply again once the game is done and I will provide the game. I don't want anyone copying at the moment.
@OxygenEnjoy
@OxygenEnjoy 4 ай бұрын
Broski be sure to update us in this comment section once you made it ✊
@SimplyTutuco
@SimplyTutuco 4 ай бұрын
update us one day :D
@ItzRealImro
@ItzRealImro 2 ай бұрын
@PatPat647 update?
@LewisLoinsen13
@LewisLoinsen13 6 ай бұрын
Nice tutorial but i have a question, what is the difference of "game.Workspace.Part" instead we can just simply write "workspace.Part"
@BrawlDevRBLX
@BrawlDevRBLX 6 ай бұрын
Both basically do the same thing. The difference is that 'workspace' is a built-in keyword and 'game.Workspace' is how you access the Workspace folder inside the game data model.
@LewisLoinsen13
@LewisLoinsen13 6 ай бұрын
Ohh okay thanks for the information!
@Random.Planet
@Random.Planet 2 ай бұрын
Thanks for the videos 🙌
@osakadev
@osakadev 6 ай бұрын
Summary Tables are a type of data collection in LUAU (a data collection is basically a variable which can contain many values inside it) There are 2 types of tables in LUAU: Arrays and Dictionaries - Array: They are tables whose elements are indexed with numbers based on the position of the element we want to get, for example: array[4]. This gets the element in position 4 of the array - Dictionaries: These are tables whose indexes are a data type other than a number (i.e. you can not index by doing dict[4]). So to index, you must do it with the name of the "key" (the key is the name that refers to a certain value, this name is used only to access the value contained) as follows: dict["name"]. This will get the dictionary value with the key "name" What is indexing? Indexing is to ACCESS a specific value in an array or dictionary based on the key that references it, by default, the arrays have as index a number (from 1 to the number of elements). While the dictionaries, will depend on what value you put, whether it is a text, a reference in memory, a part, or whatever "#" as operator The # symbol is used to get the number of elements in an ARRAY (this does not work with dictionaries, if you try it, you will get 0 even if you have values).
@الخلبوصة
@الخلبوصة 6 ай бұрын
Thank you!
@Sturgeon22
@Sturgeon22 6 ай бұрын
@@osakadev This essay was your way of saying "I have to poop" ? Left me on read crazy how these people switch up.😞
@t8bx
@t8bx 6 ай бұрын
thanks, this cleared a lot of confusion for me :)
@shiver8191
@shiver8191 5 ай бұрын
dude i love ur summaries helps me out so much
@osakadev
@osakadev 5 ай бұрын
@@shiver8191 You welcome
@الخلبوصة
@الخلبوصة 6 ай бұрын
congrats on the new shirt:)
@lmaoboibruh6933
@lmaoboibruh6933 28 күн бұрын
you and thedevking are great teachers
@ArdaPOLAT-n3x
@ArdaPOLAT-n3x 29 күн бұрын
i wish i had teacher like u before
@fangyongsun7182
@fangyongsun7182 Ай бұрын
arrays are actually variables that hold multiple values
@740Eyes
@740Eyes 5 ай бұрын
you are the best in the world i would have never learned about any of this anywhere else this means the world to me thank you so much!
@AC-rx6fr
@AC-rx6fr 4 ай бұрын
From what it looks, it seems that dictionaries work similarly to hashtables, in that case it makes sense why pairs shows itmes in a "random" order
@Dat_here
@Dat_here 18 күн бұрын
your video is very good
@rdsstamil
@rdsstamil 29 күн бұрын
i just learned LUA easily thx brawldev
@rdsstamil
@rdsstamil 29 күн бұрын
i basically started 2 days ago
@abztdm
@abztdm 17 күн бұрын
Very very good tutorial series
@Skibidi_Mewer
@Skibidi_Mewer 3 күн бұрын
im just here to say thank you for making these
@personguyIII
@personguyIII 4 ай бұрын
"we are gonna set this cheeseburger to 15 dollars something ridiculous" california:
@CoolPruitt
@CoolPruitt 6 ай бұрын
6:48 If your using Roblox studio, it will actually print out all the elements in the array. He was probably using a older version of roblox studio when he uploaded this video.
@TwigManGames
@TwigManGames 12 күн бұрын
Tables, arrays and dictionarys are the hardest thing for me to learn rn. I can't seem to remember how to write them out
@A_man698
@A_man698 2 ай бұрын
Thank u. I learned a lot
@bicolourchalk9269
@bicolourchalk9269 6 ай бұрын
Super helpful thanks man
@Rekushia-q8w
@Rekushia-q8w 3 ай бұрын
oh god, i saw "arrays" in the youtube time section and had flashbacks to my coding class
@samibeta-tv4ev
@samibeta-tv4ev 2 ай бұрын
btw not my first game but gonna be first game with coding from me! thx man
@AHMAD_1566
@AHMAD_1566 6 ай бұрын
Great video, when will you talk about raycasts?
@Zoogan07
@Zoogan07 Ай бұрын
I'VE MADE IT! AFTER YEARS (about 2-3 hours) OF GRUELING STUDYING, I'VE FINALLY MADE IT!
@MisMatch1234
@MisMatch1234 26 күн бұрын
My brain is fried
@West_Deal
@West_Deal 3 ай бұрын
love you bro
@LtsVapor
@LtsVapor 4 күн бұрын
when he said the array starts at pos 1 it broke my brain im used to 0
@LanaLaFemme
@LanaLaFemme 24 күн бұрын
Maybe the implementation has changed since you made the video but as of this moment print( myArray ) does in fact print the whole table instead of a hash
@nahidwin-mn1ij
@nahidwin-mn1ij Ай бұрын
27:07 didn't script in a like a month and a half bc my laptop was broken now I'm back so yippe here's what I made basically when you click a part you become a ghost local ghostPart = workspace.Part -- part that gets clicked local debounce = false -- debounce var ghostPart.ClickDetector.MouseClick:Connect(function(plrWhoClicked) -- clicked event if debounce == false then -- checks if part was clicked debounce = true -- sets it so the part can't be clicked again until debounce = false for _, v in ipairs(plrWhoClicked.Character:GetDescendants()) do -- loops through all the table objects. if v:IsA('Part') or v:IsA('MeshPart') or v:IsA('SpecialMesh') or v:IsA('Decal') or v:IsA('BasePart') then -- checks if a par that has a transparency property v.Transparency = 0.5 -- sets the part to 0.5 so its half invs end end task.wait(3) -- waits 3 seconds end debounce = false -- sets back to false so it can be clicked again end)
@Eternalkeyy
@Eternalkeyy Ай бұрын
wow.
@nahidwin-mn1ij
@nahidwin-mn1ij Ай бұрын
@@Eternalkeyy wydm by wow?
@shadowgirls997
@shadowgirls997 20 күн бұрын
Some errors I noticed are that when defining ghostPart, you said "workspace.Part" instead of "game.workspace.Part" which should bring an error. Plus, even though the part probably had the ClickDetector beforehand, you still need to define it through a variable like "local ClickDetector = ghostPart.ClickDetector"
@nahidwin-mn1ij
@nahidwin-mn1ij 20 күн бұрын
@ ok thanks
@MoNaeto
@MoNaeto 3 ай бұрын
finished the series in 2 days i feel like dying but i actually wanna code asap cuz its fun
@Mr_kruh97
@Mr_kruh97 6 ай бұрын
This was a great episode
@Veryprogamer123
@Veryprogamer123 10 күн бұрын
this was the hardest tutoiral so far of the beginner srcipting tutoiral not gonna lie
@Zarpulsion
@Zarpulsion 6 ай бұрын
local partsFolder = Instance.new("Folder",workspace) for index = 1,8 do task.wait(1) local part = Instance.new("Part") part.BrickColor = BrickColor.random() part.Position = Vector3.new(0,20,0) part.Parent = partsFolder print("part created") end local partsTable = partsFolder:GetChildren() --returns all the children inside our specified instance and converts them into a array table for _,parts in ipairs(partsTable) do task.wait(1) parts:Destroy() print("Part",_,"Destroyed") end moving up! these tutorials have been so helpful and im very excited to move on to the advanced guide
@TropialGamingYT
@TropialGamingYT 5 ай бұрын
bro how!? I can't remember most of it
@Zarpulsion
@Zarpulsion 5 ай бұрын
@@TropialGamingYT just keep going at it always try to make a couple custom examples for yourself so it helps you really understand and keep what you learned inside your head
@Nie_Kapi
@Nie_Kapi 5 ай бұрын
thanks for tutorials :)
@Soul-zi8sw
@Soul-zi8sw 5 ай бұрын
ive been scripting for 6 months and would appreciate if you make a video about metatables and object oriented programming since it is a useful tool in roblox studio
@somedumbman207
@somedumbman207 5 күн бұрын
I can not thank you enough i made a google doc of what all ive learned from you as notes this is what i made local swordshop = { ["Greatsword"] = 140, ["Shortsword"] = 90, ["Blade of agony and dispair "] = 1 } for swordpice, price in pairs(swordshop) do print (swordpice, price) end print("sword of agony and dispair is some hot garbage")
@GuruleGaming
@GuruleGaming 23 күн бұрын
this took me a reallyyyyyyyyyyyyyyyy long time to make local mcdonalds_menu = { ["Big Mac"] = 5, ["Quarter Pounder with Cheese"] = 6, ["Chicken McNuggets"] = 4, ["Filet-O-Fish"] = 5, ["McChicken"] = 4, ["French Fries"] = 3, ["Egg McMuffin"] = 4, ["Sausage McMuffin"] = 3, ["Hotcakes"] = 4, ["Fruit & Maple Oatmeal"] = 3, ["McFlurry"] = 3, ["Apple Pie"] = 1, ["Happy Meal"] = 4, ["Soft Drink"] = 2, ["Milkshake"] = 3, ["Coffee"] = 2, ["Iced Coffee"] = 2, ["Sweet Tea"] = 1, -- Breakfast items ["Sausage Biscuit"] = 3, ["Bacon, Egg & Cheese Biscuit"] = 4, ["Sausage, Egg & Cheese McGriddles"] = 4, ["Bacon, Egg & Cheese McGriddles"] = 4, ["Breakfast Burrito"] = 3, ["Hash Browns"] = 2, ["Spicy McChicken"] = 5, ["Bacon Cheeseburger"] = 5, ["Double Quarter Pounder with Cheese"] = 7, ["Deluxe Crispy Chicken Sandwich"] = 6, ["Garden Side Salad"] = 2, ["Parfait"] = 2, ["Fruit & Yogurt"] = 2, ["Sundae"] = 2, ["Mocha Frappe"] = 3, ["Espresso"] = 2, ["Crispy Chicken Wrap"] = 4, ["Veggie Burger"] = 5, ["Mozzarella Sticks"] = 3, ["Chocolate Chip Cookie"] = 1, ["Brownie"] = 2, ["Lemonade"] = 2, ["Hot Chocolate"] = 2, ["Iced Tea"] = 2, ["Grilled Chicken Sandwich"] = 5, ["Double Cheeseburger"] = 3, ["Cheeseburger"] = 2, ["Hamburger"] = 2, -- Sides ["Onion Rings"] = 3, ["Side Salad"] = 2, ["Chicken Selects"] = 5, -- Drinks ["Bottled Water"] = 1, ["Diet Coke"] = 2, ["Sprite"] = 2, ["Root Beer"] = 2, ["Orange Juice"] = 2, -- Desserts ["Chocolate Cake"] = 2, ["Vanilla Cone"] = 1, ["Hot Fudge Sundae"] = 2, ["Caramel Sundae"] = 2, -- Secret menu items ["McGangBang"] = 7, ["Land, Sea, and Air Burger"] = 9, ["Poor Man's Big Mac"] = 4, ["McCrepe"] = 5, ["Chicken McGriddle"] = 6, ["Big McChicken"] = 8, ["McKinley Mac"] = 10, ["Monster Mac"] = 12, ["Neapolitan Shake"] = 4, ["Grilled Cheese"] = 2, ["Mc10:35"] = 6, ["Big Mac Sauce Fries"] = 4, } for menuItem, price in pairs(mcdonalds_menu) do print(menuItem .. " is " .. price .. "$") end
@therealisticbanana
@therealisticbanana Ай бұрын
THANK YOU I LOVE YOU BRAWLDEV
@JG_Orion
@JG_Orion 6 ай бұрын
Hello, I've watching your tutorial and I am having fun with it, I would just like to ask if you could create a tutorial on creating a basic game manager that is in the module, I know you have a tutorial on module script already, but what I would like to see is on an actual game manager that can perform basic game like an loop game, I know its kinda lot to ask for, but I would like to have a server game manager incorporated with a module script that can be use for loop game
@wildrikoo
@wildrikoo Ай бұрын
8:16 actually its not roblox's library. its just one of the lua's table functions
@Russigol.Editzz
@Russigol.Editzz 19 сағат бұрын
Hey, i really appreciate that you teached us all these kind of stuff for free, i always wanted to make a game, my mother and i really liked you, and now we are argumenting about your age. May i ask how old you are? Between 16-20 or more? My mom thinks that your are around 23, and im saying that youre 16, how old you are? Sorry for this weird question.
@keen5760
@keen5760 6 ай бұрын
very good tutorial W
@memmememememm
@memmememememm 5 ай бұрын
This is the best tables tutorial i have watched holy shit.
@CodeByteCrafter
@CodeByteCrafter 6 ай бұрын
Thank you so much for this series looking forward to the challenges and finally moving on to the advanced series ♥
@fourthdim1
@fourthdim1 Ай бұрын
i didn't expect that Lua uses 1 as starting index
@SigmaBoy-w5o
@SigmaBoy-w5o 13 күн бұрын
Thanks 🎉🎉🎉🎉
@Blocksko
@Blocksko Ай бұрын
just great
@sk9editz
@sk9editz 3 ай бұрын
tip : watch the pairs and ipairs section on 0.5x speed if its confusing
@Opti_Prime-v1j
@Opti_Prime-v1j 4 күн бұрын
i suggest yall make notes about everything you learned in the playlist so you dont forget, thats what i did haha
@rizzzzzlestudios5555
@rizzzzzlestudios5555 3 ай бұрын
good video
Final Game - Roblox Beginners Scripting Tutorial #18 (2024)
23:59
METATABLES | What are they and how can we use them?
18:40
Crusherfire
Рет қаралды 31 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
How I Got the World Record on Roblox's “Hardest Game”
21:38
PinkLeaf
Рет қаралды 1,6 МЛН
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 2,8 МЛН
What if Old Minecraft Mobs were Created Today?
28:05
KazooCat
Рет қаралды 814 М.
1 Year of Learning Game Development In 6 Minutes
6:01
Giedzilla
Рет қаралды 2,6 МЛН
The Most Impressive Scratch Projects
11:00
DenshiVideo
Рет қаралды 5 МЛН
I Paid Devs on Fiverr to Make an Open World Game
8:33
Minimunch
Рет қаралды 512 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН