GetChildrenOfClass()

Not sure about other getters but GetChildren and GetDescendants at the very least I would love to have predicate support for. I often find myself writing my own especially since I am an avid subscriber to single-script architecture and have converted every project I have signed onto into that paradigm.

It is very common for codebases following single-entry-point logic to need to query only ModuleScripts for example and I find myself writing tons of pointless boilerplate for the same thing every time (specifically: I use a package that handles traversal and requires for me wherever I can).

There are other APIs in the engine that allow predicates during traversal such as PreloadAsync (though this is only a rare example? and the callback is ran after the fetch, not before).

@CDDevelopment I am also experience this inconvenience, specially when you make a leaderboard or admin panel where it’s tracking everyone on the server. Not to bump with that. It fills the scripts’ lines real quick.

1 Like

Jit did you forget modules exist? Also, for your username, thank you.

1 Like

My mate. You just gave me homework of what a jit means, and I mentally regretted it.