I tried local color = brickcolor.Color but that doesn't work I don't know what to do.
You can do something like game.Workspace.Part.BrickColor = BrickColor.new("White")
Or if your looking to make a Part Color Random use das
script.Parent.Color=Color3.new(math.random(),math.random(), math.random())