I’m having a weird issue where I can’t convert a string to a BrickColor. Note that objColor
is a string value which is set to “Bright red.”
I first tried this:
object.BrickColor = objColor -- This obviously doesn't work since objColor is a string
I got an error (which is expected) that it expected a BrickColor and got a string.
Here’s where I am stuck. I tried wrapping it in BrickColor.new()
and got another error:
object.BrickColor = BrickColor.new(objColor)
For some reason, this one immediately gives me an error that it expected a Color3 and received a string. Does anyone know why this is, and how can I properly convert a string to a BrickColor. Also, this works fine when I don’t use a variable in BrickColor.new()