How do i make script turn BrickColor into Color3? I kind of need to find out how for a menu GUI that has a team status thing the same colour as the players team colour.
Don’t really get it but what I would do is something like this just picking the Color property after the BrickColor changes.
--user or whatever changed BrickColor
--then just do
local Color = part.Color
Im essentially trying to turn something like “Really red” to “255,0,0”
Yeah, as I said, just pick the Color property. It automatically changes.
I dont think you can do that with a Team instance
local function ToColor3(c)
return Color3.fromRGB(c.r, c.g, c.b)
end
print(ToColor3(BrickColor.new('Really red')))
Oh. I haven’t read that. Sorry.
BrickColor has a Color
property, which is the Color3 representation of that BrickColor. Try =BrickColor.new("Really red").Color
in the command bar!
He could just used ``` Smarpart = script.Parent
Smarpart.Color = Color3.fromRGB(0, 0, 255)```