How to store a Color3 Value?

What is the Color3 color “name” of the Gui objects color that you are referencing:

That wouldn’t matter because the name of the color would be rounded to the closest BrickColor. which could be way different than the actual Color3 value.

Yeah, but me knowing that can let me help them further. (So I can know what color it should be.)

local color = v.BackgroundColor3
local round = math.round
local r, g, b = round(color.R*255), round(color.G*255), round(color.B*255) 
sendData[6] = {r, g, b} --stores values as rgb 0-255 inside a subtable
print(sendData[6])
local actualColor = Color3.fromRGB(sendData[6][1], sendData[6][2], sendData[6][3])
print(actualColor) --actual color you should use(example Part.Color = actualColor)

Hope I helped.

Also if you only care about the actual color you can do:

sendData[6] = v.BackgroundColor3
print(sendData[6])

--example:
--Part.Color = sendData[6]
1 Like

Thanks for this help

I used this and it worked
Also @Dev_Ryan 's Strateggey workeed too

2 Likes

This is a good way of doing this, it could also be done this way for readability and reliability:

local Hotpink = Color3.fromRGB(255, 16, 164)
local floor = math.floor
local SavedColors = {}
SavedColors.Hotpink = {floor(Hotpink.R * 255), floor(Hotpink.G * 255), floor(Hotpink.B * 255)}

local Brick = Instance.new("Part", workspace)
print(unpack(SavedColors.Hotpink)) --> 255, 16, 164
Brick.Color = Color3.fromRGB(unpack(SavedColors.Hotpink)) -- 255, 16, 164