I have a script that you click the part to open but when I close the Gui it won’t reopen when I click the part here the part script `local ClickDetector = script.Parent.ClickDetector
ClickDetector.MouseClick:Connect(function(PlayerWhoClicked)
local PlayerGui = PlayerWhoClicked:WaitForChild(“PlayerGui”)
local MainFrame = PlayerGui:WaitForChild(“MainFrame”)
print("Part clicked, enabling MainFrame")
MainFrame.Enabled = true
end)
in here the gui script that close the gui
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild(“PlayerGui”)
local mainFrame = playerGui:WaitForChild(“MainFrame”)
local closeBtn = mainFrame.StartFrame:WaitForChild(“CloseBtn”)
closeBtn.MouseButton1Down:Connect(function()
print(“Close button clicked, disabling MainFrame”)
mainFrame.Enabled = false
end)
`in here video example of what it does