Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function recolor(model, Color, recursion)
- for _, Part in next, model:GetChildren() do
- if Part:IsA("Part") then
- Part.BrickColor = BrickColor.new(Color);
- elseif Part:IsA("Model") and recursion then
- recolor(Part, Color, recursion);
- end;
- end;
- end;
- function retexture(model, Texture, recursion)
- for _, Part in next, model:GetChildren() do
- if Part:IsA("Part") then
- Part.Material = Texture;
- elseif Part:IsA("Model") and recursion then
- retexture(Part, Texture, recursion);
- end;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement