Scrolling frame items on top of one another

Hey there! Right now, I’m trying to create a logs command and facing some difficulty. When I try to clone a UI template and place it in a scrolling UI, but this isn’t working, and I’m facing a bug where the new log just goes on top of the old one. Please note that no errors have happened so I’m pretty clueless.

Problem (executed command ‘commands’ & ‘message’):

Code:

local clone = scrFrame.Template:Clone()
			
clone.Name = 'Logs'
clone.Text = v -- Text value
clone.Visible = true
clone.Parent = scrFrame

Any help will be appreciated because I have no idea what’s happening.

2 Likes

add a UIListLayout inside of the scrolling frame

1 Like

I did, I just forgot to specify that I did

send a picture of the layout of the GUI unless you already figured it out

1 Like

image

hmmm, what are your properties for the UIList

1 Like

image*
*SortOrder is now LayoutOrder

Remove the UI padding and try again. I’m pretty sure those UI objects collide with eachothers property and behavior. (UIListLayout and UIPadding)

I don’t think they do, as I had another frame with identical properties and it still works fine

Edit: I tried this, and it didn’t do anything. Same result

Can you post an RBXM file containing the UI? I can’t seem to understand why this is happening because UIListLayouts ignore frame size and positioning.

I solved this by myself.

Solution: I was deleting the UIList object when deleting all the TextLabels, causing the TextLabels to pile on top of one another.

1 Like