I have this gui script after I open it and close it, when I try to open it the 2nd time it didn't work. What do I need to do to fix it?
function boop(Player)
if not Player.PlayerGui:FindFirstChild("Gui") then
local gui = script.Gui:clone()
gui.Parent = Player.PlayerGui
gui.LocalScript.Disabled = false
end
end
script.Parent.ClickDetector.MouseClick:connect(boop)
