I have the original coding here:
local player = game.Players.LocalPlayer local slots = script.Parent.Background.Tool.Slots:GetChildren() -- Sorting system -- local resorted = {} for i, v in pairs(slots) do print(v) table.insert(resorted, tostring(v)) end table.sort(resorted) print(table.concat(resorted, ' ')) player.Inventory.ChildAdded:connect(function(obj) if obj.ItemType.Value == 2 then for i, slots in pairs(resorted) do if slots.Image == "" then local find = game.ReplicatedStorage.InvenFrames.Tools:FindFirstChild(obj.Name) slots.Image = find.Image slots.ItemName.Value = obj.Name for i, clone in pairs(find:GetChildren()) do if clone:IsA("Folder") then clone.Parent = slots return nil end end end end end end)
But when I go back to use the newly sorted version, I can't. Any help?