new to roblox studio need some help with this script
local screengui = game.StarterGui.ScreenGui
script.Parent.MouseButton1Click:Connect(function() local allchildren = screengui:GetChildren()
local numofchild = #allchildren
for i = 1, numofchild do
local child = allchildren[i]
child.visible = false
end
end)

1 comment
line 4, change
visibletoVisible