Feedback on "Instance:QueryDescendants"

Include example that you can do :has(:not()) … I did not realize you could compose it this way at first.

Affected URL: https://create.roblox.com/docs/reference/engine/classes/Instance#QueryDescendants

5 Likes

Am i the only one that thinks that this is perfectly clear?


But maybe some more complex examples in general should be added.

Hi @badcc ,
Can you please give an example of where you’d use the :has(:not()) combo? Curious what this solves in a real-world scenario of finding highly specific descendants…

Thanks,
IgnisRBX

Hi again @badcc ,
I’ve added an example of a :has(:not()) combo in the docs (last line in the " Pseudo-class selectors" code example), hopefully showing a practical example of usage in a game.

https://create.roblox.com/docs/reference/engine/classes/Instance#QueryDescendants

IgnisRBX