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 comment
Thanks! It worked!