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

BrickColor value not changing?

Asked by
FiredDusk 1466 Moderation Voter
8 years ago

I have a model in workspace called "BlackBoard" and in that model I have a part called "Part". I have a value in the Part called "CValue". What I am trying to do is if I click a part, another part will change a diff. color.

Part = script.Parent

Part.ClickDetector.MouseClick:connect(function()
    local BC = game.Workspace.BlackBoard.Part.CValue
    BC.Value = "Really red"

end)

1 answer

Log in to vote
0
Answered by
Im_Kritz 334 Moderation Voter
8 years ago

Sorry if I misunderstood your question, but if you wanted to change a brickcolor you can just directly change it by BrickColor.new. You won't need any ColorValue

Update: I understand your problem now, I'm at school right now so I can't test. Here's what I got

local Part = script.Parent

Part.ClickDetector.MouseClick:connect(function()
    local BC = game.Workspace.BlackBoard.Part.CValue
    BC.Value = BrickColor.new('Really red').Color
end)

0
I just need the value to change. FiredDusk 1466 — 8y
0
I updated my code, I believe it will work Im_Kritz 334 — 8y
Ad

Answer this question