Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Greatest to Least not working..?

Asked by 9 years ago

Whenever I print the table, everything is doubled or tripled. How could It just be added to the table once?

local Items = {}

for _, Item in pairs(faceData) do
    table.insert(Items, Item.rap)
    table.sort(Items, function(a, b) return a > b end)
    for k, v in pairs(Items) do
        TextLabel.Text = v
    end
end

Answer this question