Answers for "how to get the lowest number in a table roblox"

0

how to get the lowest number in a table roblox

function GetLowest(table)
    local low = math.huge
    local index 
    
    for i,v in pairs(table) do
        if v < low then
            low = v
            index = i
        end
        return index
    end
end
Posted by: Guest on February-25-2021

Code answers related to "how to get the lowest number in a table roblox"

Browse Popular Code Answers by Language