I have a model, that has 4 other models inside it, and then parts inside those models. I want to make the first model a variable with all the other models and parts with it. I tried doing:
local model = game.Workspace.model:GetChildren():GetChildren()
But, obviously, that won't work. So then I tried this:
local model = game.Workspace.model:GetChildren()
local realmodel = model:GetChildren()
But, that also doesn't work. Any ideas? All help is appreciated!

2 comments
GetChildrendoes not return a single object; it returns a table (a list) of objects. CallingGetChildrendirectly on a table of objects doesn't make sense. What you want is to go through the elements of that table and callGetChildrenon those individual elements. This is exactly what happens in kingdom5's answer.I get it now. So, that's why I'd need a "for i,v in pairs" right?