I want to know how to count the amount of tools in a players backpack so I can associate it with a different script.
To get the number of items within the backpack, you can just do the below:
local NumberOfContents = #Player.Backpack:GetChildren()
GetChildren() returns a table containing all of the children in the instance you have called it upon. With tables, you can obtain the number of contents by using #
.
There are exceptions but you should not run into these exceptions if the table is from :GetChildren()