I need help with tables

local guis = {}
for i,v in ipairs(viewguis:GetDescendants()) do
  local PropertyValues = PropertiesModule.GetPropertyValues(v)

end
print(guis)

my goal should give me a result like this when i print the guis:

guis = {
  Frame = {},
}

(I am able to get the Frame as v[“ClassName”])
how can I do that?

Something like this:

local guis = {}
for i, v in viewguis:GetDescendants() do
	guis[v] = {}
end
print(guis)

well if i do this it will overwrite when i want to add something new

guis["shop"] = {"bread", "cheese", "milk"}
-- and then
guis["shop"] = {}
-- it will overwrite it

Then what are you trying to do? Save two different sets of information using the same key?

yes… but I think I can do what I want to do in another way. sorry for wasting your time. but now i learned that’s how it works. thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.