How would I select parts in a model with different names in a script?

For my character customizer i want to be able to change the color of all limbs, how do i select the parts in a script?

Use ipairs,

for index, part in ipairs(character:GetChildren()) do
part.BrickColor = BrickColor.new("Your Color")
end
2 Likes