Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is this LocalScript not adding a BrickColorValue to the Player?

Asked by
wrenzh 65
10 years ago

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.

Answer this question