I’m trying to return the lowest number from a table
local LowestDistance = math.min(unpack(Distances))
However, I get a red underline, saying
‘This function must be called with self. Did you mean to use a colon instead of a dot?’ but a colon also shows a red underline. So what’s the correct function?
math | Documentation - Roblox Creator Hub shows math.min, so to me it should still work?
number math.min ( number x, number … )
Returns the minimum value among the numbers passed to the function.