To be specific, I have 4 models, that are in a model called "all". In those 4 models, there are parts. I separated them into models to create patterns on the tiles. What I want is, to make all the parts in the models, to change color. Here's what I have, but it doesn't work.
local outter = game.Workspace.all.outter:GetChildren()
local second = game.Workspace.all.second:GetChildren()
local third = game.Workspace.all.third:GetChildren()
local last = game.Workspace.all.last:GetChildren()
local all = game.Workspace.all
for g = 1,3 do
for i,v in pairs(outter,second,third,last) do
v.BrickColor = BrickColor.new("Institutional white")
v.Material = "Neon"
wait(0.5)
v.BrickColor = BrickColor.new("Really black")
v.Material = "SmoothPlastic"
end
end
So, what I'm doing here(I think) is returning ALL the parts in ALL the models, ALL at once. But this doesn't work. Any ideas? All help is appreciated!

6 comments
Didn't you ask a question very similar to this yesterday?
No, yesterday I asked how to do GetChildren() twice in one model. And even if I did, how is that relevant...
Because you'd have the children of children and you'd just use
for i,v in pairs(all) doyou dipYes, but I didn't understand your answer yesterday ._.
Then you can't do this I'm sorry but you're too special to use a function that was written for you which did exactly what you ask, so you really can't do this at all.
If I don't understand code, what's the point of using it? Just because you wrote code for me that did what I wanted it to, doesn't mean it'll teach me. I want to learn how it works. Pasting code that works, that I don't understand, defeats the purpose of me learning.