game.ReplicatedStorage.ColorChange.OnServerEvent:Connect(function(plr)
local char = plr.Character
local r = plr.PlayerGui.RaceSelector.Menu.SliderMenu.ColorBoxes.ImageColor3
local q = Color3.fromRGB(r)
char["Body Colors"].HeadColor3 = q
char["Body Colors"].LeftArmColor3 = q
char["Body Colors"].LeftLegColor3 = q
--
char["Body Colors"].RightArmColor3 = q
char["Body Colors"].RightLegColor3 = q
char["Body Colors"].TorsoColor3 = q
print("Changed")
end)
When i do this the color changes but not to the image color of the gui it just turns black, how would i be able to make it work

6 comments
im changing a body part
I don't believe you need to convert 'r' to RGB (q), you can just directly set the Body Colors equal to 'r'
but the r = the imagecolor and where i need to get it from.
local color = plr.PlayerGui.RaceSelector.Menu.SliderMenu.ColorBoxes.ImageColor3 char.HeadColor3 = color
It doesn't matter if its a backgroundcolor3, an imagecolor3, or a part color, it all still uses the same inputs.
i did use that but it doesent work