i was doing a test with respect to the objects and for some reason the table is automatically sorted and i dont want that, i want it to stay fixed if an index is modified
i tryed use string tables, dictionaries and none of them works
local itms = workspace.Items
local slots = {"","","","","",""}
for i,v in pairs(itms:GetChildren()) do
if v.SlotEnabled.Value then
slots[v.Slot.Value] = v.Name
end
end
print(table.unpack(slots)) -- "" "Part2" "" "" "" ""
i dont know what the problem could be, if anyone knows i would appreciate it.