I'm trying to make a leaderstats where it saves some number, I'm trying to get the highest number in the server without using comparison operators. How do I do so?
You can save all the numbers in a table
and then use table.sort
. Table.sort
is a function that can sort elements of array t in a given order, from t[1] to t[#t]; for example:
table.sort(yourTable, function(a,b) return a > b end)
For more information, you should check: https://developer.roblox.com/en-us/api-reference/lua-docs/table