This is the code:

chatcolor = Instance.new("BrickColorValue",script.Parent)
chatcolor.Name = "ChatColor"
chatcolor.Value = BrickColor.Random()
while chatcolor.Value == BrickColor.Blue() do
	chatcolor.Value = BrickColor.Random()
end

I've verified that the code ends up in the Player object, but there's no ChatColor in the Player with it.

I'm completely befuddled. I tried removing the while loop, but to no avail.