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

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

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

✓ Accepted answer
background.BackgroundColor3 = script.Parent.Parent.ColourDisplay.ImageColor3

try that

1 comment

0

Thankyou @imagoodlolboyeee

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