Alrighty! So its like it works 100% but not how I want it to be. So lets say I have a list of text labels numbered 5-15 ok now how Roblox sorts it is like this
you see the numbers on the left side of the “=” are how roblox sorts it I want it like on the right side. Here are a few images:
I want it to be numbered from the lowest to the highest from top to bottom. This is how much I can explain now to what I think can happen:
What I think is what if use alphabets? but idk how so ya.
A thing is that when I recreate a msg with the same name. and delete the old one it appears at the bottom whilst it should appear where the original message was.
Are you using #ScrollingFrame:GetChildren() in order to determine the msg’s number and/or LayoutOrder? Because if so then that won’t work.
If you delete a message and then want that message’s slot to be occupied the next time a message is created you’re going to need to locate that empty slot.
local function FindSlot()
for Index = 1, 100 do
local Slot = ScrollingFrame:FindFirstChild("Message"..Index)
if not Slot then return Index end --Finds the first vacant slot.
end
end
If you want to find the last vacant slot then you can simply perform the inverse of this iteration (iterate backwards instead of forwards).
I think u didnt understood the problem good. The problem is that if a number in greater than 9 it puts the 10 message and on after the first msg aka msg: 1 so
msg: 1 then msg: 10 I dont want that i want it like msg: 1, msg:2, msg:3 and so on!
the thing is that the number could be any big number even infinite! and it only works for 1 digit numbers so should i change the 2 to a higher and HIGHER number?