So it works the first time but when it tries to do the second loop it comes up with this error: "Position is not a valid member of Script". This is my code:
under = workspace.under
for name, child in pairs(under:GetChildren()) do
if child.Position.Y < workspace.Baseplate.Position.Y then
print("c")
end
end

1 comment
Probably beacause the second child the in pairs function checked is a Script. What you can do is instead of an in pairs loop, use an in ipairs loop to iterate over the "under's" childs in a sequence. Then if you have like 32 parts, models, or whatever you want to iterate over, you set the loop to break in 1 more index value. Like with 32 parts it breaks when it reaches the index value of 33.