How do i find the "oldest" child?

basically what i mean is lets say this
a for I, V loop adds a bunch of children
What i mean by oldest is the first child added to the parent.
so it can be like
“A” added
“B” added
“C” added

What i want is the oldes, in this case that would be A as it was the first child added

How do i do this?

It’s a feature a lot of people don’t know about but :GetChildren already does order it from oldest to newest.

Code:

local oldestObject = folder:GetChildren()[1]
3 Likes

so for specifics, this gets the OLDEST child or just the child that it finds at the top?

“so for specifics, this gets the OLDEST child or just the child that it finds at the top?”
?

1 Like

It does exactly as I said. The oldest child.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.