local DefaultTableFormat = {Tables = {Tables2 = {Tables3 = {Tables4 = {}}}},Money = 0, Girls = 0, House = 0, A = {B = {C = { D = {F = {G = {H = {I = {J = {}}}}}}}}}}
local PlayerTableFormat = {Money = 0, Girls = 0}
-- How would I insert all of them
-- For example I would have to do
for i,v in pairs(DefaultTableFormat) do
if not PlayerTableFormat[i] then
PlayerTableFormat[i] = v
end
-- THen I would go on to
for k,d in pairs(v) do
if not PlayerTableFormat[i][k] then
PlayerTableFormat[i][k] = d
end
-- and on and on
end
end
-- But is there an easier and more efficient way to automate this process? I couldn't think of one
Basically I want to add keys but automate it and make it more efficient
I also had trouble with numbers since you cant do for i,v loops on numbers
