for i,v in pairs(script.Parent:GetChildren())do if v:IsA("BasePart")then if v.BrickColor == "Deep orange" then v.BrickColor = BrickColor.new("Medium stone grey") end end end script:Destroy()
Since "Deep orange"
is a string and not a BrickColor, it is not equal to a BrickColor. To fix this, use either of the following:
if v.BrickColor.Name == "Deep orange" then
or
if v.BrickColor == BrickColor.new("Deep orange") then
Well the term "Deep orange" is a string and not a general color so you cant do that...
for _,v in pairs(script.Parent:GetChildren()) do if v:IsA("BasePart") then if v.BrickColor = BrickColor.new("Deep orange") then v.BrickColor = BrickColor.new("Medium stone grey") end end end script:Destroy()
Locked by IcyEvil, BlackOrange3343, and 2eggnog
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?