Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I have a GUI where you are able to pick colors as the top bar, but the color wont change?

Okay, So, I am currently making a GUI and I have buttons with different colors. Once you click a button then the TopBar on the GUI will turn into that specific color.

My code that I have currently is

For Red

script.Parent.MouseButton1Click:Connect(function()
	script.Parent.Parent.TopBar.BackgroundColor3 = Color3.new(255, 5, 5) --Red
end)

For Default Color

script.Parent.MouseButton1Click:Connect(function()
	script.Parent.Parent.TopBar.BackgroundColor3 = Color3.new(255, 138, 20)
end)

Please help me!

1 answer

✓ Accepted answer

try Color3.fromRGB

color3.new requires you to divide by 255.

color3.fromRGB(255,138,20)

if this helped, click accept, I am very rep hungry xd

1 comment

0

Thanks! It worked!

This discussion is preserved as it was. New answers, comments, and votes are closed.