rn i am trying to make a gui that when clicked changes the color of a part. this is the script i have right now
script.Parent.MouseButton1Click:Connect(function(player)
game.Workspace.ColorPart.BrickColor = Color3.new(0, 0, 0)
end)
but my output just says:
20:01:19.421 - Players.mynam3with123.PlayerGui.ScreenGui.TextButton.LocalScript:2: invalid argument #3 (BrickColor expected, got Color3)

1 comment
Conflicting datatypes, you need to supply a BrickColor Object. You can construct a new one like so: BrickColor.new(string BrickColor)