Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago

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

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
7 years ago

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()

0
Oh. Well, that was a stupid overlook. DataFlame 24 — 7y
Ad

Answer this question