I am developing a backpack managing script, and I'd like to know how how to check the slot of a tool. Obviously, I can check the order they appear in, but that won't include the tool currently being held or any gaps, therefore giving me incorrect answers.
Is there a function or property I can use? So far I have found none on the wiki, on both the tool and backpack pages.

2 comments
:GetChildren if you want to get the children of the backpack. But i'm not quite sure what you mean, sorry.
Not sure what you mean, but try to use for loop like: