My problem is they aren’t being displayed in order when I put them in UI. I want whatever item is first, to be displayed as first. I don’t want to change how I arrange the table though. I don’t want to add a bunch more indexs otherwise it’ll just get messy
I suppose then I would create a list/dictionary inside your ui that would sort through the dictionary. Either you copy paste the the entirety of that dictionary in your local script or you could send it through remotes.
Something like this:
local sortDictionary = {
["500"] = 1,
["501"] = 2,
---etc
}
local order = {}
Then you could add the positions of each into a list that could tell you which order to display, then go through that list to display all the items.