Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I change ImageColor3 to a BrickColor value?

Asked by 6 years ago

Good morning to all, I am trying to change to my ImageLabel the color of its image (ImageColor3) by the Color of a Team but I have an error that says “(Color3 expected, got BrickColor)” I know what the Error refers to, but can someone tell me what I can do to change the color of the image by the Color of a Team please … Thanks for reading

1 answer

Log in to vote
0
Answered by
Divistern 127
6 years ago
Edited 6 years ago

To convert any brick color value you will have to use the property “Color” which can be manipulated in the following

1local brickValue = BrickColor.new("Really red") --Getting the BrickColor
2local color = brickValue.Color --Converting it to Color3
3print(color) -- Printing the Color3 Value

Then you can just set the ImageColor3 like this

1gui.ImageLabel.ImageColor3 = color
Ad

Answer this question