local xPosition = math.random(-64,64)
What exactly is the measurement that these values use?
(-64,64) Does that mean studs? What is the measurement?
local xPosition = math.random(-64,64)
What exactly is the measurement that these values use?
(-64,64) Does that mean studs? What is the measurement?
It's simply a number.
You never gave context on what xPosition is used for, but I'm assuming it is for the X component of a part's position.
math.random(-64, 64) will give a single number between -64 and 64, so you are setting the variable to be that random number.
If you do choose to set that number as the X component for the position, then yes, the part's X component will be that many studs along the x-axis, 0 being the origin.
Hope this helps! :)
This discussion is preserved as it was. New answers, comments, and votes are closed.