How do I make a the color of a part be the same as a background color of an image button

I want to make it so that the a part can be the same as the background here is the script:

script.Parent.MouseButton1Click:Connect(function()

game.Workspace.CoolPart.Color = script.Parent.BackgroundColor3
	
end)

Please help if you can

Just copy the backgroundColor3’s RGB values, then replace script.Parent.BackgroundColor3 with Color3.fromRGB(yourBackgroundColor3Value)

1 Like