Well, if you wanted to change the color randomly, you would do this:
2 | game.Workspace.Part.Color = Color 3. new(math.random,math.random,math.random) |
4 | game.Workspace.Part.Color = Color 3. new(math.random,math.random,math.random) |
Because Color3 requires 3 values, Red, Green, and Blue. Like this: Color3.new(R,G,B)
. But if you wanted to change the BrickColor randomly, you would do this:
2 | game.Workspace.Part.BrickColor = BrickColor.Random() |
4 | game.Workspace.Part.BrickColor = BrickColor.Random() |
Hope this helped!
*Note: The R, G, and B values in a Color3 range from 0 - 1. 1 being the brightest of that value, and 0 being the darkest of that value. For example, Color3.new(1,0,0)
is completely red.