local Parent = script.Parent
local ChangeColor = Parent.BrickColor
local intValue = game.Workspace.Value
if intValue == 1 then
ChangeColor = BrickColor.new("Gold")
if intValue == 0 then
ChangeColor = BrickColor.new("Dark Blue")
end
end
For some reason this won't work? And it has no output error?

3 comments
Are you attempting to input a number, and that number determines the color change?
What's inValue?
well i see no errors except that the "Dark Blue" should have a lower case "B" in the word "Blue"