Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I change all of the colors of parts in a model by getting the children?

So, I'm trying to change the colors of all the parts inside of a model by getting the children in an array.

for i,v in pairs(game.Workspace.Model:GetChildren()) do

However, I'm unsure what to do after this. An explanation would be nice. Thanks,

1 answer

✓ Accepted answer

Have you experimented at all? If not you need to. It would probably answer your own question.

v is the current value of the table, or in this case, the current Part. So you can just do v.BrickColor = BrickColor.Red()

1 comment

0

Oh. Well, that was a stupid overlook.

This discussion is preserved as it was. New answers, comments, and votes are closed.