local button = script.Parent
local ControllabeBlur = game.Lighting:WaitForChild("ControllabeBlur")
local MainSideGui = script.Parent.Parent.Parent.Parent.Main_Side_Gui
local frame = script.Parent.Parent:WaitForChild("YourFrameNameHere")
local isLoaded = false
button.MouseButton1Click:Connect(function()
if isLoaded == false then
isLoaded = true
ControllabeBlur:Destroy()
MainSideGui.Enabled = true
frame.Visible = false
end
end)
script.Parent.MouseButton1Click:Connect(function(mouse)
if isLoaded == false then
isLoaded = true
game.Lighting:WaitForChild("ControllabeBlur"):Destroy()
script.Parent.Parent.Parent.Parent.Main_Side_Gui.Enabled = true
if script:FindFirstAncenstorWhichIsA("ScreenGui") then
script:FindFirstAncenstorWhichIsA("ScreenGui"):Destroy()
end
end
end)