Hello, I have 3 number values and I need a way for the script to find out what ever value is the highest, this is for a map voting I’m doing any help?
You can get the highest value from something like this:
local highest
local values = {}--table of the values
for i,v in pairs(values) do
if not highest then
highest = v
else
if v.Value > highest.Value then
highest = v
end
end
end
print(highest)