How to make the children of a gui turn invisible

Hi

How do i make it so that all the base children in a gui become visible = false

for i,v in pairs(Frame:GetChildren()) do 
      v.Visible = false
end

can it be in a gui or does it have to be in a frame

it can be anything you want it to be

might wanna change it to

for i,v in pairs(Frame:GetChildren()) do 
        if v:IsA("Frame") then
            v.Visible = false
      end
end
1 Like