So basically in my script i have a table variable and I have another code that clones a button and places it in the scrollingframe, but the problem is they’re all in the same position, how do I create it so it all goes under each other, I’ve looked up tutorials but it didn’t really help me out.
Current code:
local count = 0
for i, v in pairs(tools:GetChildren()) do
table.insert(toollist, v)
count = count + 1
local button = testButton:Clone()
button.Name = "ApeButton"
button.Text = v.Name
button.Parent = script.Parent.MainFrame.ScrollingFrame
--button.Position = UDim2.new(0.028, 0,0. + 075, 0)
apesize = button.AbsoluteSize.Y
local csize = (count * apesize)
script.Parent.MainFrame.ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, csize)
end
Everything here works fine, it’s just that I need to know how to position each button under each other so it’s alined nicely, please help me down below