of     1   

Retaliatory
#194480611Monday, July 25, 2016 1:50 AM GMT

Pls
pyth_n
#194480659Monday, July 25, 2016 1:51 AM GMT

lrnrecursivegetchildrenandutilizethe#operator - pyth_n
Dapvhir
#194480880Monday, July 25, 2016 1:54 AM GMT

ctrl+f1
ConfederateJesus
#194481309Monday, July 25, 2016 2:00 AM GMT

Instead of being a jerk like pyth_n, here you go. Put this into a local script inside of a textlabel in a screengui local count = workspace -- Change this to the model you want to count function CountBricks() local c = 0 for i,v in pairs(count:GetChildren()) do if v:IsA("BasePart") then c = c + 1 end end return c end script.Parent.Text = "Part count: " .. CountBricks()
ConfederateJesus
#194481375Monday, July 25, 2016 2:01 AM GMT

oops that isn't recursive let me get anothero ne
pyth_n
#194481436Monday, July 25, 2016 2:02 AM GMT

"function CountBricks() local c = 0 for i,v in pairs(count:GetChildren()) do if v:IsA("BasePart") then c = c + 1 end end return c end " isn't recursive. - pyth_n
pyth_n
#194481520Monday, July 25, 2016 2:03 AM GMT

function CountBricks(parent) local c = 0 for i,v in pairs(parent:GetChildren()) do if v:IsA("BasePart") or v:IsA('UnionOperation') then c = c + 1 end c = c + CountBricks(v) end return c end script.Parent.Text = "Part count: " .. CountBricks(game.Workspace) - pyth_n
ConfederateJesus
#194481583Monday, July 25, 2016 2:04 AM GMT

oops that isn't recursive let me get anothero ne that should work

    of     1