local OriginalTable = {Coins = 0, Diamonds = 0,}
local UpdatedTable = {Coins = 0, Diamonds = 0, Table = {Table2 = {Table3 = {Table4 = {Table5 = {Alice = 0}, Asd = {}}}}}}
I want Original Table to have things UpdatedTable has
but is there a way I can do something like getdescendants and add them?
I know you can just add a table by doing OriginalTable['Table'] = UpdatedTable.Table but
what if I wanted to add something inside that table
for example
UpdatedTable = {Table = {NewTable = {}, AnotherTableUpdate = {} }}
so I needed Something like :GetDescendants

1 comment
Each table could have a list of Children; GetDescendants could then recursively explore the Children. I am unsure how this would benefit you - what are you doing with these updated tables? You would probably benefit more from having a list of updates for a table (starting with the original), rather than trying to put updates inside of each other.