As Feahren already explained perfectly in their comment, you are supplying an invalid datatype to the property you are trying to change.
A part's BrickColor requires BrickColor.new(number val)
However, if you would like to get away from using a BrickColor datatype (I know I do),
then you could simply take advantage of the fact that most part objects now have a Color property that can be supplied a Color3 datatype!
Therefore, your new code could look like this!
1 | local GUI_Object = script.Parent |
2 | local ColorPart = game.Workspace.ColorPart |
4 | GUI_Object.MouseButton 1 Click:Connect( function (player) |
5 | ColorPart.Color = Color 3. new( 0 , 0 , 0 ) |
I hope this helps!