Script that counts Total Parts in Workspace

Just from the looks I can tell it won’t work, num isn’t defined and num1 isn’t being used most likely because you made a mistake with your variables in your head, BasePart doesn’t include folders.

Also I normally make these scripts in studio in less than a few minutes to help myself and this is what I would probably do:

x=0 for _, v in pairs(workspace:GetDescendants()) do x=v:IsA("BasePart") and x+1 or x end
print(x)

I haven’t touched studio in around 5 months so I’m not sure if it works or not.