Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Random Color and shape?

I want to make a random shaped part and a random colored part via script.

x = Instance.new("Part")
x.Shape = -- random shape
x.BrickColor = -- random color

1 answer

✓ Accepted answer

To choose a random brick colour, there is a built in function to do this:

x.BrickColor = x.BrickColor.Random()

OR

local color = Color3.new(math.random(), math.random(), math.random())
x.BrickColor = color

This discussion is preserved as it was. New answers, comments, and votes are closed.