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

BrickColor value not changing?

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

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)

2 comments

0

I just need the value to change.

0

I updated my code, I believe it will work

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