so, I’m wanting to change the color of several parts and models (everything that is green in the image above) with a script,
but if I were to do it part by part, it would be a lot of work besides having to rename them all, like “Part1”, “Part2”, Part3"… and so on,
and I wanted to know if there is any code to do this, I’ve searched a lot here in the forum and in other places, but I didn’t find what I wanted, but I don’t know if this is possible
To contextualize, I want to make an option, which leaves the vegetation (Trees, Grass…) white, to make a winter mode, with snow and such, and the same thing for autumn (Leave the vegetation in orange tones and yellow).
for _, __AN in pairs(workspace:GetDescendants()) do -- IDK where the model is located at but you can also change it.
if __AN:IsA("BasePart") then -- this is optional, only use this if your parts use "BaS
if _AN.BrickColor == BrickColor.new("Forest green") then -- change this to the parts color.
__AN.BrickColor = BrickColor.new("Really black") -- change this to your desired part color you want.
end
end
end