local Tab = {Xd = 'G', ge = 'g',ce = 'gg',keke = '1', fefe = '2'} What if I wanted to move Xd to first and ge to last what would I do?
You can pretty easily reference the values that you wanna put into the other table and just copy em' over. You can do it like so:
local newtbl = {} local Tab = {Xd = 'G', ge = 'g',ce = 'gg',keke = '1', fefe = '2'} newtbl.Xd = Tab.Xd newtbl.ge = Tab.ge
Or, if you're converting the table into a regular old array, you can use table.insert()
and it will automatically insert it for you, in order.
local newtbl = {} local Tab = {Xd = 'G', ge = 'g',ce = 'gg',keke = '1', fefe = '2'} table.insert(newtbl,Tab.Xd) table.insert(newtbl,Tab.ge)
Hope this helps! If you have any further questions feel free to comment or look things up on the devforum.