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

how to put a color of one gui to another gui?

Asked by 4 years ago

i am currently making an game and i want and in one part i need to make a choose color thinggy and i just need to get the color of one gui and put that color on another gui.

My code:

local background = script.Parent.Parent.Parent.Parent.background

script.Parent.MouseButton1Click:Connect(function()
    background.BackgroundColor3 = Color3.new(script.Parent.Parent.ColourDisplay.ImageColor3.R)
    background.BackgroundColor3 = Color3.new(script.Parent.Parent.ColourDisplay.ImageColor3.G)
    background.BackgroundColor3 = Color3.new(script.Parent.Parent.ColourDisplay.ImageColor3.B)
end)

1 answer

Log in to vote
0
Answered by 4 years ago
background.BackgroundColor3 = script.Parent.Parent.ColourDisplay.ImageColor3

try that

0
Thankyou @imagoodlolboyeee Retallack445 75 — 4y
Ad

Answer this question