Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

BrickColor value is not changing?

I know how to get all the parents but the problem is, the BrickColor Value named "CValue" is not changing the color value.

Part = script.Parent
BC = Part.CValue

Part.ClickDetector.MouseClick:connect(function()
	Part.BrickColor = BC.Value
	BC.Value = "Bright Red"
end)

1 comment

1

You can't store strings in a BrickColorValue. Change "Bright Red" to BrickColor.new("Bright red"). Also, you should be careful with color names, as they have to be exact.

1 answer

✓ Accepted answer

A BrickColorValue requires a BrickColor for a value. On line 6, you're trying to set its value to a string. Instead, write BC.Value = BrickColor.new("Bright red")

This discussion is preserved as it was. New answers, comments, and votes are closed.