I have a script that works:
X = math.random(-10,10) --this doesn't have to be math.random if X < 0 then X = X*-1 end print (X)
But I'm wondering if there is a better way, especially if I'm trying to get the absolute value of multiple numbers, possibly vector 3.
math.abs()