Im trying to make a GUI That opens on a click detector, I have the opening and closing sequence done but after i close the GUI It wont open again, Does anyone know how to fix this?
Opening Script:
local function click(player)
player.PlayerGui.ScreenGui.Frame.Visible = true
end
script.Parent.ClickDetector.MouseClick:Connect(click)
Closing script: (inside a TextButton)
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)

3 comments
I forgot to mention, make sure it's in a LocalScript.
Thank you
No problem! Always happy to help!