How do you convert a negative number to positive?
Use absolute value:
local num = -5 print(math.abs(num)) -->5