Before you ask, yes I did but a UIListLayout. Here is my code.
for i, v in ipairs(plr.InventoryF:GetChildren()) do
local button = Inventory.ScrollingFrame.Template:Clone()
button.Visible = true
button.Text = v.Name
button.Parent = Inventory.ScrollingFrame
button.Activated:Connect(function()
currentSelectedButton = button
currentSelectedItem = v
toggleSelectionInfo()
end)
end
I thought this was super weird. It ran through every item, yet it didn’t clone the buttons. I tried making it so that when you click the inventory button, it updates. But that dosen’t work either.