Hello, I’m trying to change the BackgroundColor3 of either Primary, Secondary or Tertiary buttons depending on which one is clicked. The colour it changes to will be based on ColourDisplay’s ImageColor3. However, when either of the buttons are pressed, the background appears black. I have attached a video for demonstration.
Code:
-- Customisation Buttons
local PrimaryButton = EquipFrame.Customise.PrimaryButton
local SecondaryButton = EquipFrame.Customise.SecondaryButton
local TertiaryButton = EquipFrame.Customise.TertiaryButton
local SubmitButton = EquipFrame.Customise.ColourPicker.SubmitButton
local function CustomisationClickFunction(Button)
local ColourDisplay = EquipFrame.Customise.ColourPicker.ColourDisplay
local Colour = {R = ColourDisplay.ImageColor3.R, G = ColourDisplay.ImageColor3.G, B = ColourDisplay.ImageColor3.B}
Click:Play()
Button.BackgroundTransparency = 0
Button.BackgroundColor3 = Color3.fromRGB(Colour.R, Colour.G, Colour.B)
end