Everything about Tables - Roblox Studio

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 68

  • @imthebestmayne122
    @imthebestmayne122 2 роки тому +24

    It never ceases to amaze me how articles on the developer wiki explaining these concepts fail to explain things like a UA-cam video can. I have been using [ ] for dictionaries, not knowing I could just use a period. And low and behold, it is because there is no mention of that on the dev wiki.

    • @CyberFlameYTB
      @CyberFlameYTB 4 місяці тому

      because its common sense

    • @imthebestmayne122
      @imthebestmayne122 4 місяці тому +3

      @@CyberFlameYTB Perhaps for you, but for someone with no programming experience learning their first language, it might not be! No reason to throw someone an insult because you have more experience in the field!

    • @algorithmgeneratedanimegir1286
      @algorithmgeneratedanimegir1286 2 місяці тому

      @@CyberFlameYTB Nothing about programming is "common sense." That's a ridiculous statement that belies all introspection.

  • @Taylor.....
    @Taylor..... 2 роки тому +10

    I love that unlike the other UA-camrs you don't play around with the super basics like how to tie your shoe in every single video seems like all the other content creators are just making videos for people who just discovered studio for the first time and they never move past the extreme basics

    • @BRicey
      @BRicey  2 роки тому +5

      That's my goal exactly: there is a content gap for people who want advanced stuff.

  • @ordinaryfellow9093
    @ordinaryfellow9093 3 роки тому +14

    holy moly this is clear as heck

  • @BSSMacroless
    @BSSMacroless Рік тому +1

    super underrated youtuber man teaches better than the dev king

  • @geografixxxx
    @geografixxxx Рік тому +1

    Thanks mate that helped a lot! its really hard to find high quality content like this as such videos don't show up in the recommendations nor when searching for them...

  • @TUBBYest
    @TUBBYest Рік тому +1

    A youtuber who actually knows what they are talking about. Give this man a good mic, and a bit more confidence on camera and he could pass TheDevKing.

  • @polisharchitect9270
    @polisharchitect9270 2 роки тому +1

    Thanks! Helped me and the others alot. I hope you'll be able to provide more videos like this, because they're really helpful!

  • @no_kurisu_allowed
    @no_kurisu_allowed 2 роки тому +1

    Thank you, sir, i was struggling with this pairs/ipars stuff in some script tutorials bc i had no idea what it was about... Now its clear :]

  • @NerttheNert
    @NerttheNert 2 роки тому

    Finally figured out how to give an item to all players, thanks!

  • @jimmynoo-chron
    @jimmynoo-chron 2 роки тому

    This video is the best video to explain tables holy cow

  • @eddiehazard3340
    @eddiehazard3340 3 роки тому +9

    This is a great video. Thank you! If I may make a suggestion, you want to not smack your mouth after you make a point. It's a bit offputting, especially for those wearing headphones. Thanks for explaining tables, it helped!

  • @FloxyCola
    @FloxyCola 10 місяців тому +1

    super good overview of how tables work! I was wondering, is there a way to directly put each value of a table into a variable (e.g. variable1, variable2) using a for loop and some clever use of the i variable? I can't tell if I'm looking past an obvious solution or if it's deceivingly complicated to do

    • @BRicey
      @BRicey  10 місяців тому

      You could do that with some meta programming but if I’m being honest I don’t know why you ever would. If the table is small you could use table.unpack and then set a bunch of locals seperated by a comma

  • @mattplays3824
    @mattplays3824 5 місяців тому

    very good explanation!

  • @Banana-ui3kj
    @Banana-ui3kj 4 роки тому +3

    Thank you keep up the awesome tutorials!!

  • @g4by.423
    @g4by.423 4 роки тому +3

    Thank you!!! keep up with this greats tutorials!!

  • @puruzmeep324
    @puruzmeep324 2 роки тому

    thanks, so useful.

  • @zomerzim7117
    @zomerzim7117 4 роки тому +6

    local myTable = {"Wow!","Amazing","Tutorial!"}
    for i,v in pairs(myTable) do
    print(i)
    wait(.75)
    print(v)
    end
    -- I knowned this in my head still thinking of it Lol

  • @Amritss664
    @Amritss664 11 місяців тому

    tysm for making this video i already know the coding fundamentals and stuff but some stuff about tables i never knew about i now know like table.unpack! ty bro

  • @quite_dumb_profile_picture7687
    @quite_dumb_profile_picture7687 3 роки тому

    Not quite everything. I have been looking how to clone tables where i it will change the RAM address and i still couldn't find the way

  • @whitekingcat5118
    @whitekingcat5118 Рік тому

    all i want to know is how to add things to the table, remove things from the table and test if you have things inside the player : (

  • @newgamesrobloxYT
    @newgamesrobloxYT 4 роки тому +1

    woah this was really helpful thanks man!

  • @qxxrd
    @qxxrd 2 роки тому

    hey how exactly would you do it if you were working with numbers? (like "for i, 1+500 in pairs(c) do ... end")

  • @LuminosityZero
    @LuminosityZero 2 роки тому +1

    how do i get the last value from a table?
    if i dont know how long that table will be, how do i get the last value from the table? i've tried but nothing works!

    • @BRicey
      @BRicey  2 роки тому

      You have to use the length of the table: tbl[#tbl]

    • @LuminosityZero
      @LuminosityZero 2 роки тому

      @@BRicey thanks

  • @DreZaM
    @DreZaM 3 роки тому +1

    Thank you!

  • @EasyLemons
    @EasyLemons 4 роки тому +1

    Very helpful, thank you :D

  • @halifox2244
    @halifox2244 3 роки тому

    Would it be possible to add multiple parts to the table and then just do MyTable.Transparency = 1 for example and it would change all of the parts?

    • @BRicey
      @BRicey  3 роки тому +5

      No, you would have to loop through all of the parts in the tabel

    • @paopaothemaocow
      @paopaothemaocow 3 роки тому +1

      how about:
      for i, parts in pairs([group the parts you want to make transparent and insert the models name here]:GetDescendants()) do
      parts.Transparency = 1
      end
      -btw idk if it will work

    • @halifox2244
      @halifox2244 3 роки тому

      @@paopaothemaocow Thanks! ill give it a try

    • @paopaothemaocow
      @paopaothemaocow 3 роки тому

      @@halifox2244 did it work?

    • @halifox2244
      @halifox2244 3 роки тому

      @@paopaothemaocow i havent tried it yet, i will update when i have

  • @SquidyCodes
    @SquidyCodes 4 місяці тому

    Great, amazing video. But what about table.upack :(

  • @eyeofazurewrathe
    @eyeofazurewrathe 4 роки тому +1

    Decimals is float

    • @BRicey
      @BRicey  4 роки тому +2

      No, decimals in lua are doubles, not floats

    • @eyeofazurewrathe
      @eyeofazurewrathe 4 роки тому

      B Ricey oh i didnt know that

    • @eyeofazurewrathe
      @eyeofazurewrathe 4 роки тому +1

      B Ricey you still helped me a little bit

  • @Nightcodest
    @Nightcodest 3 роки тому +3

    hey guys i need help with my script that i cant get it to print the value instead of the index can anybody help?
    local maps = {game.Workspace["The Forest"],game.Workspace["Mad City"]}

    local winningMap

    for index, value in pairs(maps) do
    winningMap = math.random(1,#maps)
    wait(1)
    print("CHOSEN MAP NAME IS "..winningMap.."!")
    wait(1)
    break
    end

    • @rashy15
      @rashy15 3 роки тому +2

      winningMap = maps[math.random(1, #maps)]

    • @Nightcodest
      @Nightcodest 3 роки тому

      @@rashy15 sorry man i fixed it the day i've sent this message

  • @SafoanPlayz
    @SafoanPlayz 4 роки тому +2

    Wow thx

  • @JohnnyUy
    @JohnnyUy 4 роки тому +3

    So tables are harder than they look

  • @BlueDoggy
    @BlueDoggy 4 роки тому +3

    i am new

  • @rosierin8104
    @rosierin8104 4 роки тому +1

    Great!

  • @BSSMacroless
    @BSSMacroless Рік тому

    boring fact: ipairs runs faster than pairs

  • @yarik_superpro
    @yarik_superpro Рік тому

    you aswell can commenting like:
    not commented
    --[[
    commented
    commented
    commented
    commented
    ]]
    not commented

    • @FloxyCola
      @FloxyCola 10 місяців тому +1

      wouldn't it be "]]--" on the second last line, or does that not matter?

    • @yarik_superpro
      @yarik_superpro 10 місяців тому

      no+why did you self liked? 💀@@FloxyCola

    • @FloxyCola
      @FloxyCola 10 місяців тому +1

      @@yarik_superpro I didn't like it, someone else did ig? also I tried the ]]-- thing yesterday and it worked...you should try it too lol

  • @polarcat0156
    @polarcat0156 4 роки тому

    Please get a better mic it's so hard to hear you.

    • @BRicey
      @BRicey  4 роки тому +1

      I did, check out my latest video