So Lets Say I'm making a table that will allow me to code in things at runtime. It would look like this:
local guiobjects = { { ["ClassName"] = "Frame"; ["Parent"] = game.StarterGui; }; };
How would I go about creating the instance and setting the Properties?
for _,gui in pairs(guiobjects) do local newGui = Instance.new(gui.ClassName) for i,v in pairs(gui) do if i ~= "ClassName" then newGui[i] = v end end end