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

My boolvalues wont be set to true?

Asked by 2 years ago
Edited 2 years ago

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
0
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? mariohead13 129 — 2y

Answer this question