local open = "255, 255, 255"
local DO = script.Parent
script.Parent.MouseButton1Click:Connect(function()
DO.ImageLabel.BackgroundColor3 = Color3.fromRGB("255,255,255")
GP.TextButton_Roundify_12px.ImageColor3 = Color3.fromRGB("255,255,255")
end)
✓ ANSWER ACCEPTED
why is this gui turning black and not white?
2 answers
✓ Accepted answer
First of all, you shouldn't do " " with a color value I would just put the numbers without the quotation marks. Probably roblox sees the color value is nil so they automatically put 0,0,0
255, 255, 255 is white, but 0,0,0 is black.
Edited code:
local open = "255, 255, 255"
local DO = script.Parent
script.Parent.MouseButton1Click:Connect(function()
DO.ImageLabel.BackgroundColor3 = Color3.fromRGB(0,0,0)
GP.TextButton_Roundify_12px.ImageColor3 = Color3.fromRGB(0,0,0)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
