Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you set a Brick's position Randomely within a certain area?

Asked by 9 years ago

How do you set a Brick's position Randomely within a certain area?

1 answer

Log in to vote
0
Answered by 9 years ago
brick.CFrame = CFrame.new(math.random(xmin, xmax), math.random(ymin, ymax), math.random(zmin, zmax))

Replace the *min and *max with your minimum and maximum position numbers.

Ad

Answer this question