I am trying to make a script where if a part is the color of bright blue, bright red, or grey, it will set the boolvalue to true, but it wont work the script:
if script.Parent.Parent.Flag.Color == Color3.fromRGB(13, 105, 172) then
script.Parent.BlueValue.Value = true
end
if script.Parent.Parent.Flag.Color == Color3.fromRGB(159, 161, 172) then
script.Parent.BlueValue.Value = false
script.Parent.RedValue.Value = false
end
if script.Parent.Parent.Flag.Color == Color3.fromRGB(196, 40, 28) then
script.Parent.RedValue.Value = true
end

1 comment
I can't replicate. Is this a localscript? Is there anything else in the script? Are you sure script.Parent.Parent.Flag is the right part?