Output only prints Ribbon, and never the parts. The problem with this is after I try to do .Touched, like so
for _, v in pairs(Gifts:GetChildren()) do
for _, box in pairs(v:GetChildren()) do
print(box.Name)
if box:IsA('Part') then
print('Is a part') -- this never prints
box.Touched:Connect(function()
end)
end
end
end
I think it has to do with the _ counters. It may be messing up the value between the two loops (I know it does with other variables, _ might be special but not 100%)
You can actually use both. Call everything that’s directly in the parent model with :GetDescendants(), then based off that you can implement the :GetChildren that’ll read whatevers in any child models. The api shows a almost spot on example of what you’re trying to achieve: Instance | Documentation - Roblox Creator Hub