How to choose every single child of a parent?

Hello!

So basically, I’m trying to disable every LocalScript in a certain folder inside of the StarterGui and was wondering how to do it?

You cans use GetDescendants() and a for loop;

local children = parent:GetDescendants()

for i,v in pairs(children) do
   if v:isA("Script") then
      --Destroy
   end
end
1 Like