With this it is very hard! I am a basic scripter but if anyone knows how this can be fixed please help me!!
script.Parent.MouseClick:connect(function()
local frame = game.StarterGui.ScreenGui.Frame.Visible
frame.Visible = not frame.Visible
end)