Scroll Frame Buttons Stack

I made a script to parent clones of a button into a scrolling frame, it indeed works but they are all ontop of each other and not going below them like they should.


	local player = game.Players.LocalPlayer
	local storageFolder = player:WaitForChild("Storage")

	for _, item in ipairs(storageFolder:GetChildren()) do
		local itemLabel =  script.Parent.TextButton:Clone()
		itemLabel.Text = item.Name
		itemLabel.Parent = plr.PlayerGui.BagGui.ScrollingFrame
		itemLabel.Visible = true
	end

image
image
image

1 Like

Add a UIListLayout to the ScrollingFrame.

2 Likes

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