How to find the Second Child and higher of a folder

I’m tracking objects through a folder, the objects are NumberValues named “item” I need to find the other children of that folder besides the first one, doing something like folder[3] gives me an error saying that 3 isn’t in that folder. I don’t want to resort to naming these items numbers.

1 Like
local Folder = workspace.Folder
local Objects = Folder:GetChildren()
table.remove(Objects,1)

This makes a table having everything except the first object

1 Like

or

for i, object in pairs(Folder:GetChildren()) do
    if i == 1 then continue end
    -- code here
end
2 Likes

And to add onto this, the second parameter of FindFirstChild makes the function recursive:

local recursive = true
local found = Folder:FindFirstChild("item", recursive) --finds first descendant named "item"