of     1   

C1OSE
#185238605Sunday, March 13, 2016 5:21 AM GMT

So currently I made a script that changes the color of all parts in the workspace of that color but how would i make it so it does it to the parts inside of models aswell current script: ----------------- local OldColor = {"Dark green"} local NewColor = {"Pearl"} for i,v in pairs (game.Workspace:GetChildren()) do if v:IsA"Part" and v.BrickColor == BrickColor.new(table.concat(OldColor)) then v.BrickColor = BrickColor.new(table.concat(NewColor)) end end https://twitter.com/RealAxeHeads
HumanXerxes
#185238896Sunday, March 13, 2016 5:27 AM GMT

Try this: local OldColor = "Dark green" local NewColor = "Pearl" function Recolor(parent) for i,v in pairs (parent:GetChildren()) do if v:IsA"Part" then if v.BrickColor == BrickColor.new(OldColor) then v.BrickColor = BrickColor.new(NewColor) end end Recolor(v) end end Recolor(workspace)
AuroJosh
#185241360Sunday, March 13, 2016 6:22 AM GMT

Try this: local OldColor = {"Dark green"} local NewColor = {"Pearl"} for i,v in pairs (game.Workspace:GetChildren()) do if v:IsA("Part") then if v.BrickColor == BrickColor.new(OldColor) then v.BrickColor = BrickColor.new(NewColor) end end end #code print("Who is this you speak of?".."Dis is AuroJosh!")
TimeTicks
#185241671Sunday, March 13, 2016 6:32 AM GMT

Not quite. local old = "Dark green" local new = "Pearl" recolor = function(object) for i,v in next, object:GetChildren() do if v:IsA("Part") and v.BrickColor == BrickColor.new(old) then v.BrickColor = BrickColor.new(new) end recolor(v) end end recolor(workspace)
C1OSE
#185279921Sunday, March 13, 2016 9:21 PM GMT

@Time it works but could u explain how it worked? If something works i like to know how exactly it worked https://twitter.com/RealAxeHeads

    of     1