Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Cloning a UI element depending on how much information there is in an array?

Asked by 6 years ago

How would I clone a UI element depending on how many "Patch" are in the table?

so right now I have two "Patch 0.1" and "Patch 0.2" so I want the UI element to be cloned twice.


local ClonePatch = script.Parent.Frame.Body["Patch 0.1"] patch ={ ["Patch 0.1"] = "Testing", ["Patch 0.2"] = "test 2 ok" } for i,v in pairs(patch) do ClonePatch:Clone().Parent = script.Parent.Frame.Body end

Answer this question