Hello I've written this script
script.Parent.MouseButton1Click:Connect(function() local Children = script.Parent.Parent:GetChildren() Children.Visible = false end)
but it doesn't make the children visible false?
You want to iterate through with a for loop
script.Parent.MouseButton1Click:Connect(function() local model = script.Parent.Parent:GetChildren() for i,v in pairs(model)do v.Visible = false end end)
Thank you AlbertoMiAmigo,
I've fixed it though just by listing the children
script.Parent.MouseButton1Click:Connect(function() local Children = script.Parent.Parent.Content and script.Parent.Parent.MoreContent Children.Visible = false end)