Nepzerox
(noah)
October 22, 2021, 1:48am
#1
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
KIDamado80
(KIDamado80)
October 22, 2021, 2:08am
#2
add a UIListLayout inside of the scrolling frame
1 Like
Nepzerox
(noah)
October 22, 2021, 11:54am
#3
I did, I just forgot to specify that I did
KIDamado80
(KIDamado80)
October 22, 2021, 9:14pm
#4
send a picture of the layout of the GUI unless you already figured it out
1 Like
KIDamado80
(KIDamado80)
October 22, 2021, 9:28pm
#6
hmmm, what are your properties for the UIList
1 Like
Nepzerox
(noah)
October 22, 2021, 9:30pm
#7
*
*SortOrder is now LayoutOrder
oSudden
(Sam)
October 22, 2021, 9:36pm
#8
Remove the UI padding and try again. I’m pretty sure those UI objects collide with eachothers property and behavior. (UIListLayout and UIPadding)
Nepzerox
(noah)
October 22, 2021, 9:37pm
#9
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
oSudden
(Sam)
October 22, 2021, 9:39pm
#10
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.
Nepzerox
(noah)
October 23, 2021, 5:33pm
#11
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