It’ll be great if the documentation mentioned that the returned array of GuiObjects is sorted by superposition: the topmost UI is at the first index, and so on.
Thanks for the feedback! I wanted to let you know that we took your suggestion and updated the documentation a while ago to include clarification on the indexing. Just wanted to close the thread here and make sure we followed up.