Creating table and inserting new variables into the table

hey,
what I’m trying to do is to insert new variables into a table, I expect the result to be like this:
image_2023-09-01_193941769

but the result isn’t what I expected:
image_2023-09-01_194043945

as you can see, the table is instantly a number despite me already attempting to add variables inside that table. I’m not sure what I’m doing wrong:
image_2023-09-01_194433869

sorry for my horrible explanation, but please do tell me if you have questions. thanks!

am
you mean something like this?

local towers = {}
table.insert(towers,{["Pistol Man"] = {Progress = 0, Achieved = {}}})
for _,v in ipairs(towers) do
	print(v)
end
1 Like

Seems like it’s caused by a different part of the script, mind sending the entire code please?

exactly what I’m looking for! I thought the method I’m using is also doable. thanks a bunch!
image_2023-09-01_202112686

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