I would like to add to what theD1R3W0LF said.
First, Color is not a property of Part; the name is BrickColor.
Second, the BrickColor is not a string. It's a BrickColor. It is therefore edited by this;
part.BrickColor = BrickColor.new("Really red")
Third, to make a brick spawn in a random position, we need three random numbers for height, width, and depth. We don't want it to spawn ABSOLUTELY anywhere, though, because most of the time it wouldn't be anywhere you could see.
part.Position = Vector3.new(
math.random(-100,100),
math.random(1,100),
math.random(-100,100)
)
1 comment
How exactly do you want the parts spawn? Randomly or a random part when someone touches or clicks something?