Answered by
6 years ago Edited 6 years ago
I'm assuming "Part"' is a Baseplate.
Insert a script into the workspace and type in this code.
01 | local part = workspace.Baseplate |
05 | local random = math.random( 1 , 3 ) |
07 | part.BrickColor = BrickColor.new( "Bright green" ) |
08 | elseif random = = 2 then |
09 | part.BrickColor = BrickColor.new( "Really red" ) |
10 | elseif random = = 3 then |
11 | part.BrickColor = BrickColor.new( "Neon orange" ) |
And I'm also assuming you only one these 3 colors only, else if u want more, u can add more in more just by copying and pasting. (Only use this if you want specific colors)
If you want a lot of colors then, don't use the method above as it takes time to type out the individual colors and by a lot of colors, I mean all the colors in the Roblox studio color. Then, type this code.
1 | local part = workspace.Baseplate |
5 | part.BrickColor = BrickColor.Random() |
Hopes this help :)
Closed as Too Broad by xAtom_ik, climethestair, and Programical
This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.
Why was this question closed?