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.
Asked this in the discord, apparently, you cannot check it. If you're trying to do this, you're going to have to make a custom backpack system.
Not sure what you mean but you can try using for loop
game.Players.PlayerAdded:Connect(function(plr) for i,v in pairs (plr.Backpack:GetCHildren()) do if v:IsA("Tool") then -- Code here end end end)