This has been an important tidbit of code I've needed to learn how to use for a while. Can I use this function to find specific classes (i.e. Part, Folder, Script...), and if so, how? Here's what I've tried so far:
local sP = script.Parent
function totaling()
wait(4)
local wins = sP.AllStats:GetDescendants("Folder")
print(wins)
end
totaling()
Unfortunately I can't figure out what I'm doing wrong because when I run this it doesn't return anything. Thank you for your time!

2 comments
I think you have to do folder:GetDescendants()
Try my code below