local RenderParts = {}
for i,v in pairs(game.Workspace:GetChildren()) do
if v.ClassName == "Part" then
table.insert(RenderParts, v)
elseif v.ClassName == "Model" then
table.insert(RenderParts, v.ClassName("Model"):GetChildren())
end
end
PlayerScripts.Render:6: attempt to call a string value

1 comment
You would have to do another for loop for that model to insert each child. so it would be else if ..... for , in pairs(model:GetChildren()) do insert end