So I made a Close Gui script and an Open Gui script and both won't work here are the scripts
local GUI = game.StarterGui.Roka local Button = script.Parent Button.MouseButton1Click:Connect(function() GUI.Enabled = false end)
local GUI = game.StarterGui.Roka local Click = script.Parent.ClickDetector Click.MouseClick:Connect(function() GUI.Enabled = true end)
This should be in a local script, but the GUI location should be:
local player = game:GetService("Players").LocalPlayer local GUI = player.PlayerGui.Roka