I made a GuiButton that makes a frame visible if pressed the first time but then I want it to make the frame invisible if pressed again and for the cycle to repeat. Here is my code. I can't think straight.
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Down:Connect(function() player.PlayerGui.Store.Frame.Visable = true end)
if player.PlayerGui.Store.Frame.Visable = true then player.PlayerGui.Store.Frame.Visable = false end

3 comments
this is what happens when I don't get sleep
Me: “is there any syntax errors?” You: “No.” Me: “Yes… there is.”
"VisAble" lol