Hello Guys, Thank You For Clicking On My Question. As The Title Says, I've Been Searching How To Iterate Through A Table Tha's Into A Dictionary. I Know It's Possible Because I've Seen People Who Used This (The Owner Of Anime Fighting Simulator, For Example). So, I Tried Iterating With A For Loop, But It Was Kinda Weird And I Didn't Get What I Wanted.
So, If You Know How To Make So That You Can Iterate Through The Table That's Into The Dictionary, I Would Really Appreciate If You Put It Down In The Comments Section.
Example Of What I'm Trying To Do:
SabersConfig.Info = { ["A"] = { ['Name'] = 'Force Push'; ['Power'] = ForcePush(); --That's A Function ['Key'] = "F"; } }
There are a couple of ways to iterate through a table.
The first way is a numerical for loop.
local Array = {1,2,3} for i = 1, #Array do print(Array[i]) end
The other way is to use a pairs loop.
local Dictionary = { A = "B", C = "D", } for i,v in pairs(Dictionary) do print(i, v) end