Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Are there any shortcuts to determining what the highest value of a set of values is?

Could you use a method that would find the highest value out of a set of multiple different values in a few short lines of code, or would you have to do it the manual way with multiple lines of code?

1 answer

✓ Accepted answer

You can use math.max() !!!

It returns the highest value that you provided it

local highest = math.max(3, 5, 2, 199234424)
print(highest) --199234424

1 comment

0

Thank you!

This discussion is preserved as it was. New answers, comments, and votes are closed.