Beginner's Roblox Scripting Tutorial #18 - Tables (Beginner to Pro 2019)

Sdílet
Vložit
  • čas přidán 29. 08. 2024

Komentáře • 558

  • @TheDevKing
    @TheDevKing  Před 5 lety +69

    Hey guys! Be sure to join the discord server if you have any questions or if you would like to meet me! discord.gg/FKcSyRh

    • @Brqeni
      @Brqeni Před 4 lety +3

      Devking I found out that when your doing the table concat you dont need to add the punctuation marks if you want to have them in a string seperated.

    • @raptor0011
      @raptor0011 Před 4 lety +3

      I legit watched so many lua tutorials and I even have a book on how to script lua and then I’m like: Oh my god I’m so good! 2 days later the only thing I know how to do is to print stuff.

    • @UsernameDP
      @UsernameDP Před 4 lety

      Apparently the discord link expired

    • @randax8518
      @randax8518 Před 3 lety

      @@UsernameDP discord.gg/rodevs

    • @selasegowu3102
      @selasegowu3102 Před 3 lety

      When I watch this feels like back when I was python class.

  • @developerrk384
    @developerrk384 Před 4 lety +240

    He’s sounds super happy.

  • @quadproductions1830
    @quadproductions1830 Před 3 lety +148

    I swear that when he said about the cooking game, I thought he was going to put in hotdogs.

  • @raidyqk
    @raidyqk Před rokem +54

    How to use:
    table.remove(table, the element u want to remove from the specified table) Used to remove stuff from an inventory for example
    table.sort(table) Rearrange a table, this may work if u make a puzzle game and would like to recreate the area or make the puzzle solve for itself
    table.concat(table, ", ") A way of printing the contents of the table, this may be useful if u have a list somewhere that a player has to completes

  • @IsaacTBeast
    @IsaacTBeast Před 4 lety +97

    Him: "Lua Roblox starts at 1"
    Me: "What sorcery is DIZ?"

    • @theblinkingbrownie4654
      @theblinkingbrownie4654 Před 4 lety +7

      I know right, that should be illegal.

    • @theblinkingbrownie4654
      @theblinkingbrownie4654 Před 4 lety +3

      @@Tentrin_boom Well Lua tries to be easier to use than python but after using Roblox for a few weeks I realized that Roblox throws that simplicity out of the window, imo at least.

    • @mayodonut
      @mayodonut Před 3 lety

      @@Tentrin_boom ur so lucky no one whoooshed you

    • @warjt4737
      @warjt4737 Před 3 lety

      r/whooosh

    • @nineveh17
      @nineveh17 Před 3 lety

      @@warjt4737 lol

  • @ASillyDeveloper
    @ASillyDeveloper Před 3 měsíci +8

    I swear, the views of the videos are getting lower and lower. I feel like players are giving up, but whoever made it this far. Good job kiddo, you will make it as a advanced scripter.

  • @stuntfax9004
    @stuntfax9004 Před rokem +142

    To all the people who made it this far good job! Now keep going!😊

    • @ironkiller6504
      @ironkiller6504 Před rokem +5

      thanks my dream is to make games and help peoples to make better games

    • @stuntfax9004
      @stuntfax9004 Před rokem +5

      @@ironkiller6504 np bro what do you wanna do, code or build or design?

    • @stuntfax9004
      @stuntfax9004 Před rokem +4

      @@ironkiller6504 or something else

    • @ironkiller6504
      @ironkiller6504 Před rokem +3

      @@stuntfax9004 coding

    • @stuntfax9004
      @stuntfax9004 Před rokem +2

      @@ironkiller6504 niceeeeeeeee what tutorial are you up to

  • @trickythefox9598
    @trickythefox9598 Před rokem +29

    I may be too late to say, but DAMN it feels good when he makes a mistake in code and you can detect it before he does. This is Such an awesome series, tysm!

  • @TornMarmot
    @TornMarmot Před 3 lety +12

    TheDevKing I have always found watching torturials boring and just not fun but watching yours has got me inspired to keep trying and it’s also fun to watch Bc you explaining and making it simple to understand

  • @thekingofthyrats
    @thekingofthyrats Před rokem +3

    thank you all other scripting series I tried either discontinued or make things too complicated, but you make it so easy! thank you!

  • @thegoodrobloxian9392
    @thegoodrobloxian9392 Před 4 lety +76

    Just a side not for those of you wondering. I think TheDevKing didn't mention *table.foreach()* and *table.foreachi()* for a good and specific reason.
    The functions *table.foreach()* and *table.foreachi()* (in Lua 5.1) are *deprecated* - meaning that these functions *should not* be used in ‘new code’ because they are in the process of being replaced and no longer existing. Using these functions *might* still work; however, they will soon no longer be in use. Instead of using these functions, you should use *pairs or ipairs loops* - which he has a video on.

    • @MwSama
      @MwSama Před 4 lety +2

      oh ok thx for info

    • @poopygamer321
      @poopygamer321 Před 2 lety +2

      sounds like a new apple product

    • @QUBIQUBED
      @QUBIQUBED Před 2 lety

      @@poopygamer321 apple doesn't run lua

    • @poopygamer321
      @poopygamer321 Před 2 lety +2

      @@QUBIQUBED f
      makes sense though because apple was never good for anything besides doing work at 3 fps

    • @QUBIQUBED
      @QUBIQUBED Před 2 lety

      @@poopygamer321 No it's because apple doesn't give a shit about Lua not because "it can't handle it" it's a coding language dumbass

  • @bestboi5037
    @bestboi5037 Před 2 lety +64

    Ok, I think someone has to put this out, TheDevKing is the best Scripting Teacher! He is funny and not dry unlike other devs, he is slow and explains everything deeply, he doesn't clickbait and makes short videos. Thank you for helping us learn how to script!

  • @owill5364
    @owill5364 Před 4 lety +7

    The best person for roblox tutorials!

  • @mrname0420
    @mrname0420 Před 4 lety +8

    im gonna continue tomorrow i've watched every video but the first one in this series (and also the 19th) can't wait for the advanced

  • @danycz8229
    @danycz8229 Před 5 lety +25

    Please make a tutorial for. For loops and for ipairs and pairs. Thanks

    • @TheDevKing
      @TheDevKing  Před 5 lety +25

      I actually did! it's the next tutorial coming out :D

  • @randomperson9997
    @randomperson9997 Před 3 lety +128

    you guys ever realize that he loses views every video?
    that means that a few people get to know scripting fully

  • @IamStereotype
    @IamStereotype Před 3 lety +14

    TO EVERYONE WHOS TABLE IS SAYING "Workspace failed to load". Instead of print(number(1)). say print(number[1])

  • @burgerboy_20
    @burgerboy_20 Před 2 lety +6

    I'm glad there are some connections from scratch I can make in Lua. I can connect tables to lists, and I know how to use lists. They are useful for things like potion making, cooking as he said, and inventories. They can also be used for things like server leaderboards I believe.

  • @darin9953
    @darin9953 Před 4 lety +40

    Tables is a variable with more than 1 data in it.

  • @todzler
    @todzler Před 4 lety +41

    3:55 suprised you didn't say hotdog...

    • @akachukwuokafor2624
      @akachukwuokafor2624 Před 4 lety

      HEeh

    • @todzler
      @todzler Před 4 lety +1

      I mean if you know... you know.

    • @TblSlt
      @TblSlt Před 4 lety +1

      you mentally replace it with hotdog, and yes, hodog is now made of ham, egg, and cheese

    • @Fluffernater
      @Fluffernater Před 3 lety

      @@TblSlt yeah hodog

  • @alexflame9383
    @alexflame9383 Před 2 lety +6

    I've been watching the whole series, and I'm no giving up! DEDICATION!!!

    • @ultrawoozie
      @ultrawoozie Před 2 lety

      hey quick update where are you now 8 months later, have you stuck to the words you said or no?

    • @deivanna
      @deivanna Před 2 lety

      @@ultrawoozie ive quit learnig 3 times im dedicated now its hard to focus cuz adhd but i am doing it and i see great progress, ive scripted big scripts im sure after all advanced tutorial ill be a decent scripter but that doesnt stop there i have to learn more to earn experience

    • @Zakorree
      @Zakorree Před rokem

      @@deivanna how you going now

    • @Da_truebacon
      @Da_truebacon Před měsícem

      @@deivanna so how are you doing?

  • @thyst7014
    @thyst7014 Před 4 lety +6

    If you table.sort with strings, it does them by alphabetical order.

  • @bdsnclxps7306
    @bdsnclxps7306 Před 2 měsíci +1

    i cool thing you might now is if you want to make the outcome random you can do
    print(tablename[math.random(1, amount of stuff in your table)])
    it it will print random

  • @The_SUR
    @The_SUR Před 3 lety +3

    ik im in 2020 but really you explain better then anyone!
    iv been looking for someone like you on youtube forever!
    (i sub)

    • @Layththelion21
      @Layththelion21 Před 2 lety

      ik im in 2022 but really you explain better then anyone!
      iv been looking for someone like you on youtube forever!
      (i sub)

    • @The_SUR
      @The_SUR Před 11 měsíci

      @@Layththelion21 ik im in 2023 but really you explain better then anyone!
      iv been looking for someone like you on youtube forever!
      (i sub)

    • @Layththelion21
      @Layththelion21 Před 8 měsíci

      @@The_SUR ik im in 2024 but really you explain better then anyone!
      iv been looking for someone like you on youtube forever!
      (i sub)

    • @themusketeer6534
      @themusketeer6534 Před 6 měsíci

      @@Layththelion21 Hello random people
      HELLO I AM IN NEED OF SCRIPTING ATTENTION
      (what am I saying)

  • @iansarmiento23
    @iansarmiento23 Před 4 lety +50

    At this rate, I'm mixed up with Python, Lua and C++/C#

    • @MJTFreeTime
      @MJTFreeTime Před 4 lety +9

      Ahh... the world of programming, isn’t it just wonderful how many technology choices it gives you... MY BRAIIIN

    • @zackshere8854
      @zackshere8854 Před 4 lety +3

      same, then you have unity which is just weird in itself

    • @aidanko1002
      @aidanko1002 Před 4 lety +1

      I'm doing further Css, Python, Javascript and Lua rn

    • @MJTFreeTime
      @MJTFreeTime Před 4 lety +1

      Aidan Ko
      Oh cool, I’m trying to force myself to stick to 2 things at a time lol. I don’t wanna get into the habit of trying to learn 50 things at once...
      Anyways, I’m learning roblox Lua and SQL Server database technology right now, and plan to move to Unreal Engine and C/C++ after my friend and I release our roblox game (will still provide updates).

    • @FadeKey_Randoms
      @FadeKey_Randoms Před 4 lety

      @@MJTFreeTime can i play

  • @emmettnredblue1857
    @emmettnredblue1857 Před 5 lety +15

    You deserve 10000 subscribers!

  • @nohacksjustescaping1875
    @nohacksjustescaping1875 Před 4 lety +9

    Wow, I learned so much on this series :D

  • @rexplay_z2892
    @rexplay_z2892 Před 2 měsíci

    to make things simpler a table is similar to an array which means a variable which has different slots for you to store values

  • @enenitydev1992
    @enenitydev1992 Před 3 lety +9

    *How many times does he say okay in his video?*
    *👇*

  • @madepars
    @madepars Před 2 lety +3

    This tutorial is on the tip of my tounge, thank you so much for the tutorials!

  • @ABYYSpm
    @ABYYSpm Před 2 lety +1

    The best scripting teacher ive encountered on youtube and thats facts

  • @quicstab1367
    @quicstab1367 Před 3 lety +1

    on the grind watching ur vids
    (tysm)(subbed, liked etc)

  • @yumiphara
    @yumiphara Před rokem +1

    lol when he starts talkin about omlette i remember armstrong from MGRR sayin "Making a mother of all omlettes here Jack, Can't fret over every egg!" and its funny ngl

  • @justharsizalt
    @justharsizalt Před 2 měsíci +1

    omg im nearly done for the advanced tutorial!!!

  • @mexicanfloppa
    @mexicanfloppa Před měsícem

    wow devking
    this was your chance to bring up you're famous hotdog reference but you didnt
    im disappointed in you man :(

  • @ItsTheHaCo
    @ItsTheHaCo Před měsícem

    I just looove your vibeee!!!!

  • @helplure
    @helplure Před 4 lety +6

    9:21
    You could also use *print(unpack(PlayersPhoneNumbers))*

  • @streole3121
    @streole3121 Před 2 lety +1

    Me: as soon as he puts in the ingredients for the omeletes
    My head: Egg, ham and cheese!!!!!

  • @PoloDacControlMaster
    @PoloDacControlMaster Před měsícem

    i know im 4 years late, but gotta say out of all the tutorials that explained tables you explained tables efficiently

  • @MrPeterfranklin
    @MrPeterfranklin Před 3 lety +1

    Thank you so much. I was extremely confused on how to do something, and u helped a lot

  • @liaml000-o4h
    @liaml000-o4h Před 7 měsíci +1

    00:02 Tables in Roblox scripting allow for storing multiple values
    01:34 Tables can store various types of values, including numbers, strings, and object locations.
    03:11 Adding and accessing table elements in Roblox Lua
    04:42 Learning about table functions in Roblox scripting
    06:08 Tables in Lua can be sorted in alphabetical order or least to greatest.
    07:48 Using tables and concatenate in scripting
    09:27 Using table.concat to merge values into a single string
    10:58 The next tutorial will cover tables and it will be the last of the beginner series.
    Crafted by Merlin AI.

  • @SantiagoGaming2968
    @SantiagoGaming2968 Před 4 lety +14

    Thanks, after 3 minutes of watching, I made a script print a random thing inside my table! The code is here:
    local p = 214
    local myfirstTable = {13, "yes", true, 6.66, p}
    print(myfirstTable[math.random(1,5)])

    • @MwSama
      @MwSama Před 4 lety

      lol i was confused with what this means, but now i get it after i tested it

    • @banananana3515
      @banananana3515 Před 2 lety +1

      Wow so useful!

    • @bloxplaysyt3602
      @bloxplaysyt3602 Před 2 lety

      @@banananana3515 was that sarcastic? cuz if that was, you are wrong

    • @mansbrain3978
      @mansbrain3978 Před 2 lety

      @@bloxplaysyt3602 😐

    • @QUBIQUBED
      @QUBIQUBED Před 2 lety +1

      @@bloxplaysyt3602 it IS useful, you can use it to make a random number generator. Extremely useful for random events happening in your game (example, tower battles choosing random maps for voting or tds elevators choosing random maps)

  • @somwanderer8331
    @somwanderer8331 Před 2 lety

    THank you for making these videos for us!! I would never could understand any of this without your videos

  • @bilocarrega
    @bilocarrega Před 3 lety +3

    One more tutorial and we are almost pro's...
    That's was a good trip wanst it?...

  • @twinfinitegaming4092
    @twinfinitegaming4092 Před 2 lety +2

    its amazing how easy tables are in lua

  • @Dudinurclass
    @Dudinurclass Před rokem

    This is an array if you like since arrays are used for som coding ways

  • @LongHaulPilot
    @LongHaulPilot Před 3 lety +1

    Thanks, I’m making a train game and this is helpful for the passenger screens (e.g I can programme destinstions)

  • @narwhalnoice5649
    @narwhalnoice5649 Před 2 lety

    I wanted to learn how to code in roblox when I was 5 but I never found a good tutorial to learn it. After years and years finally I found TheDevKing.And I gotta say I recommend this channel for all those who wanna learn just like me.
    Also, tnx TheDevKing

    • @thurapy684
      @thurapy684 Před 2 lety

      5 ??? bro when i was five i was still eating my own shit and this guy wanted to code wtf

    • @Muchinoi
      @Muchinoi Před rokem

      @@thurapy684 LOL yea I was interested in coding since I was like 7 and playing pvz, now I'm 14 and just started learning about 3 months ago, I've moved on from java and am now here, started on roblox lua yesterday.

  • @TheSirMaam
    @TheSirMaam Před 2 lety +2

    Did anyone realize his mic quality got better as this series progress

  • @AlvaroDKeren
    @AlvaroDKeren Před rokem

    He’s good at making this script tutorial videos, I even learned a lot like Tables,Events,Functions and more, Your the best TheDevKing

  • @cherxz
    @cherxz Před rokem

    btw you can put a table into a var so that you can print it like this:
    local PlayersPhoneNumbers = {4, 6, 2, 3, 8}
    local x = table.concat(PlayersPhoneNumbers, "")
    print(x)

  • @lashleyncube6567
    @lashleyncube6567 Před 3 lety

    Bout to finish this then its, Advanced tut keep up the good work you earned a sub discord member and a possible youtube member.

  • @SplashIs_
    @SplashIs_ Před 4 lety +6

    So this is like an ArrayList but lua version?

    • @dennisly8533
      @dennisly8533 Před 4 lety

      Splash yeh that’s what I was gonna ask

  • @boilingpoints9167
    @boilingpoints9167 Před 4 lety +4

    Hey TheDevKing, can you please make a video showing how we can make meshes equitable by pressing a button on the guiscreen?

  • @triggerhappy3783
    @triggerhappy3783 Před 3 lety +2

    Thank God its an omelet and not a hotdog.

  • @gryzzzzzli
    @gryzzzzzli Před 4 měsíci +1

    he has evolved, he doesnt use hotdogs as much

  • @GamingKini
    @GamingKini Před 10 měsíci

    this guys is like the best roblox tutorial maker

  • @LaserSFM
    @LaserSFM Před 3 měsíci +1

    I watch the tut I learn but forget it in an hour how do I remember do I keep going back to where I need help and practice that?

  • @EtherealRblxPixels
    @EtherealRblxPixels Před rokem +3

    did anyone else while taking this tutorial felt like that they wont be able to make a game and remember all this stuff?🤔

  • @nipunamunnipurage
    @nipunamunnipurage Před měsícem

    8:29 this is because the computer always starts with the number 0 first, and then from 0 it goes on

  • @PrimitiveLife4m
    @PrimitiveLife4m Před rokem +1

    I’m just wondering when you do
    Let’s say for example
    local FavoriteLetters = (“B”, “A”)
    table.sort(FavoriteLetters(1))
    print(FavoriteLetters(1))
    Would it print B or A? Theoretically it would print B but if you sort it, would it sort strings in alphabetical order?

    • @mksjoestar2475
      @mksjoestar2475 Před rokem +1

      yes it sorts strings in alphabetical order
      in this case after the script sorts this table it will print A as the 1st value in the table

  • @batameez_pasta1809
    @batameez_pasta1809 Před 4 lety +1

    So in a table can you do this?:
    local BaseplateTable = {game.Workspace.Baseplate.Transparency = 0.5
    game.Workspace.Baseplate.Reflectance = 1
    game.Workspace.Baseplate.BrickColor = BrickColor.new("Baby Blue")}
    if BaseplateTable.Transparency = 0.5 then
    destroy
    end

  • @oneno9860
    @oneno9860 Před 4 lety +11

    game.Players.PlayerAdded:Connect(function(player)

    local things = {player.Name, 'joined', 'the game'}
    print(table.concat(things," "))
    end) --lol

    • @brainbean3104
      @brainbean3104 Před 4 lety

      @JoKer YT that's the function name so if you want to recall it again you would do local function(player)

    • @shinsokudev9823
      @shinsokudev9823 Před 4 lety

      Ginger Beer no dude ;-;

    • @shinsokudev9823
      @shinsokudev9823 Před 4 lety +1

      JoKer YT that specifies that it is a function, and (player) is the parameter from PlayerAdded, which is the player that was added

    • @zoop706
      @zoop706 Před 4 lety

      Fr3nx no

    • @Simvoid230
      @Simvoid230 Před 4 lety

      @@zoop706 Fr3nx is right though.

  • @Profangamer1948
    @Profangamer1948 Před 8 měsíci +1

    i have learned tutorial but i just cant understand one thing how can i use them i know there meaning but i dont know how to use these words or numbers

  • @ebb102
    @ebb102 Před 2 lety

    Thanks alot! This helps me make my admin list.

  • @davo7612
    @davo7612 Před 3 lety +1

    Can someone help me with table.sort the second parameter?

  • @stuntfax9004
    @stuntfax9004 Před rokem +1

    Bro is turning me into a actual dev.

  • @shinchanthebest
    @shinchanthebest Před 4 lety +10

    I am RAGED where is your HOTDOG ;)

  • @fridaee
    @fridaee Před 3 lety +1

    Hotdogs: why did u leave me in the dark😔 lol

  • @A_Kiwi.
    @A_Kiwi. Před 4 lety +4

    TheDevKing I tried to skip to learn table.move can you tell me the part

    • @mitaka_78
      @mitaka_78 Před 4 lety

      its best if u watch all the videos
      i havent myself cause i watched some of alvinblox's but he didnt finish so im here

  • @eioboino9369
    @eioboino9369 Před 2 měsíci

    now were getting into lists

  • @person8316
    @person8316 Před 4 lety +2

    useless script I made :)
    local array = {4,2,4,5,2,1,2,2}
    local sum = array[1] + array[2] + array[3] + array[4] + array[5] + array[6] + array[7] + array[8]
    print(table.concat(array,"+").." = " .. sum)

  • @aghbalka
    @aghbalka Před 8 měsíci

    I like how when you say "okay" the chapter changes (I mean transcription)

  • @angrytoast3987
    @angrytoast3987 Před 3 lety +3

    it took me 10 minutes to find out i was using the wrong brackets

  • @lizardgeek1658
    @lizardgeek1658 Před 4 lety +2

    Hmm so is this how you would do crafting?
    like:
    local craftingMaterials = {"Ham", "Egg" , "Cheese"}
    --then would this work?
    if(table.concat(craftingMaterials, ", ") == "Ham, Egg, Cheese")
    instance.new("Omelette", game.workspace)

    • @zoop706
      @zoop706 Před 4 lety +1

      no lol

    • @lizardgeek1658
      @lizardgeek1658 Před 4 lety

      @@zoop706 lol

    • @eqluid7042
      @eqluid7042 Před 3 lety

      not really as concat is only for printing so it would only print omelette

  • @internetmoo8901
    @internetmoo8901 Před 5 lety +5

    How come you never use wait() in your tutorials
    But good tutorial

  • @exasem5570
    @exasem5570 Před rokem

    BRO THANK YOU YOU ARE LITTRY THE BEST FRICKIN TEACHER EVER BRO

  • @kingseptic5079
    @kingseptic5079 Před 5 lety +3

    1st

  • @Milkwashereonyoutube
    @Milkwashereonyoutube Před 4 lety +4

    You kinda sound like g0z kinda ._. (Btw thank you for the tutorial :>

  • @yarin3360
    @yarin3360 Před 2 lety +1

    I watched all of your tutorials and thats was awesome and very clearly, luckily I know python, c++, java, c# and etc' so I can understand that very well

  • @Idk_Rush
    @Idk_Rush Před 3 lety +1

    Im sure DevKing is very good at cooking

  • @Banana-ui3kj
    @Banana-ui3kj Před 4 lety +1

    I just made my first ever cannon but the problem is, I don’t know how to make a delay so u can’t spam it lol and if I should put :Destroy() inside the clicked event or outside of it

    • @spot-xd8ql
      @spot-xd8ql Před 4 lety

      Congrats dude. I would add a debounce for that

    • @Banana-ui3kj
      @Banana-ui3kj Před 4 lety

      spot6003 thank you for replying! I was able to fix it yesterday and also so created a teleport pad :D and a button that changes leaderstats into either pirate with bounty or Marine with respect XD it’s cheesy xD

    • @vision3633
      @vision3633 Před 3 lety

      That will outside right?

  • @oioi4268
    @oioi4268 Před 3 lety +1

    6:40 time stamp for myself :)

  • @latty7230
    @latty7230 Před 3 lety +1

    Tables always confused me from Alvin blox’s scripting tutorial

  • @bye8080
    @bye8080 Před 3 lety

    DevKing: This Will Be The Last Of The Beginner Series
    Beginner Roblox Scripting #19: Are You Sure About That

  • @Subspace.T.Tripmine
    @Subspace.T.Tripmine Před 2 lety +2

    sus:
    local sus = {"blue", "yellow", "red"}
    if table.find(sus, "red") then
    print("sus")
    end

  • @of4950
    @of4950 Před rokem

    if it helps tables are basically just lists like from scratch

  • @Verbosal
    @Verbosal Před 2 lety

    Now we know that trying to merge omelette ingredients instead of cooking them causes the fabric of reality to collapse, very cool

  • @snoanashi1597
    @snoanashi1597 Před 3 lety +1

    Can you please make a video about removing a player off a table when they leave?

    • @Gadavious101
      @Gadavious101 Před 3 lety

      InsertTableHere = {}
      game.Players.PlayerRemoving:Connect(function(player)
      table.remove(InsertTableHere, player)
      end)
      If you want to add
      HowManyPlayers = {}
      game.Players.PlayerAdded:Connect(function(player)
      table.insert(HowManyPlayers, player)
      print(#HowManyPlayers) -- The hastag is referring how much things are in that table
      end)

    • @snoanashi1597
      @snoanashi1597 Před 3 lety

      @@Gadavious101 Thanks for helping out! I had struggled to find the solution but I guess it was the hashtag. I will just analyze this reply and learn it myself

  • @wizzy7444
    @wizzy7444 Před 4 lety +7

    wait, can you make a table inside a table as well? XD
    Edit: Yes. Yes you can!
    The possibilities are.. L.I.M.I.T.L.E.S.S.

    • @toshiroraion4295
      @toshiroraion4295 Před 3 lety +1

      yeah tables inside a table are normally called 2D tables. For example you can make a num pad like so:
      local Table2D = {
      {1, 2, 3},
      {4, 5, 6},
      {7, 8, 9},
      {"#", 0, "*"},
      }
      And then you can call the values like so :
      print(Table2D[2][3])
      and that would give you "6"

  • @sylvanusdzotsi7152
    @sylvanusdzotsi7152 Před 3 lety +1

    "I dont know everything about scripting [ *insert nervous laugh here* ]"

  • @baconmasterr
    @baconmasterr Před měsícem

    I love how the views jumped from 4k per tutorial and declining to 160k on this one XD

  • @bigjimmyrblx5601
    @bigjimmyrblx5601 Před 2 lety +1

    Could anyone give me an example because i don't really see where you would use tables

    • @nottv9510
      @nottv9510 Před 2 lety

      Checking if a value is a list of things

  • @parmadox
    @parmadox Před 3 lety +1

    2:20 why you always think about food

  • @bradleywhais7779
    @bradleywhais7779 Před 4 lety +1

    are there for loops?

  • @switzy0090
    @switzy0090 Před 6 dny

    when i type the first script it tells me “
    assigning 3 values to 1 variables leaves some values unused”

  • @HackGaminOfficial
    @HackGaminOfficial Před 3 lety +1

    print("The Dev King is the best roblox scripting youtuber")

  • @TFadlY
    @TFadlY Před 2 lety

    is there a way to sum all the numbers in a table instead of just doing print ("("..table.concat(numbers, "+")..")") and pasting it into a calculator?

  • @callmepog6767
    @callmepog6767 Před 4 lety

    im really new, i made this thing. did i do it right?
    local mytable = {game.Workspace.Part, 6, 3, 7, 2}
    mytable[1.].Position = Vector3.new(0, 0, 0)
    if mytable[1].Position == Vector3.new(0, 0, 0) then
    print("ok")
    end

    • @mac3r
      @mac3r Před 4 lety

      you probably already figured this out but yes you did it right,
      just remove that dot in line 3 when you are calling the 1st value in the table.

  • @Lhuge
    @Lhuge Před 3 lety +1

    ENORME