while wait() do
color = script.Parent.Configuration.Color.Value
script.Parent.Part.BrickColor = BrickColor.new("color")
end
I'm not sure how to properly put "color" into there without the "'s.
while wait() do
color = script.Parent.Configuration.Color.Value
script.Parent.Part.BrickColor = BrickColor.new("color")
end
I'm not sure how to properly put "color" into there without the "'s.
If you're using a color3 value's value, just use that:
while wait() do
local color = script.Parent.Configuration.Color.Value
script.Parent.Part.BrickColor = BrickColor.new(color)
end
But you can use a string as well.
script.Parent.Part.BrickColor = BrickColor.new("Really red")
This is because a BrickColor can accept a string or a Color3 value.
script.Parent.Part.BrickColor = BrickColor.new("Really red")
-- or
script.Parent.Part.BrickColor = BrickColor.new(Color3.new(1,0,0))
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
The colors as a stringvalue is based on the colors you can choose from properties.