Title is self explanatory. Been trying to figure how to convert the Color3 Value to it's BrickName. I know there is a way of defining each code f.e:
local Color3Value = script:WaitForChild("ColorValue").Value local BrickName = "" if Color3Value.Value == Color3.new(0, 0, 0) then BrickName = "Black" elseif Color3Value.Value == Color3.new(255, 0, 0) then BrickName = "Red" ---etc. end
but I'm sure there is another, more efficient way.
BrickColours can be constructed with Colour3's. It'll return the closest BrickColour to that Color3. http://wiki.roblox.com/index.php?title=BrickColor#BrickColor.new
You can convert it to a BrickColour, then get its name.
local Bc = BrickColor.new(Color3.fromRGB(255, 0, 0)).Name print(Bc) -- Really red local nextBC = BrickColor.new(Color3.fromRGB()).Name) -- Color3.fromRGB() defaults to Color3.fronRGB(0, 0, 0) if no arguments are specified. print(nextBC) -- Really black