How can I make a script that gets the number of children inside of a certain parent?
Just use the #
operator on a GetChildren operation (which returns a table)
Let’s say PartA has 3 children in it, to get the number of children, just do
local part = workspace.PartA
print(#part:GetChildren()) --Would print 3 since we mentioned it would have 3 children