Man, been a while since I've been on here. I used to always be on here. I've got so much better at coding but I have one question. I know how to go about this but, I want an easier way. The code that is all commented out works but the code under it is what I was just testing.
Question: Is there a way to loop through "Character" and "Avatar" at once?
function ChangeBodyColor(Character,Avatar,BodyColor)
-- for i,Part in pairs(Character:GetChildren()) do
-- if Part:IsA('Part') then
-- Part.BrickColor = BrickColor.new(BodyColor)
-- end
-- end
-- for i,Part in pairs(Avatar:GetChildren()) do
-- if Part:IsA('Part') then
-- Part.BrickColor = BrickColor.new(BodyColor)
-- end
-- end
for i,Part in pairs(Character:GetChildren(),Avatar:GetChildren()) do
if Part:IsA('Part') then
Part.BrickColor = BrickColor.new(BodyColor)
end
end
end
