GUI Comes back after deleting it a LocalPlayer

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I want to make it so my intro script deletes after pressing the close button therefore meaning it doesn’t come back.

  2. What is the issue? After I die it will come back.

  3. What solutions have you tried so far? Ive tried deleting it on both the PlayerGUI and the StarterGUI yet it comes back


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
		script.Parent.Parent:Destroy()
	end
	
	
	
end)

Thanks for reading in if anyone has any idea what to do please do comment.

1 Like

try that.
may not work idk not sure…

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)

Did you tried turning this off? (In Screen Gui)
image

Disable this option in the screengui:

1 Like
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)

Thanks now I feel so stupid. I appreciate the response for something so simple.

1 Like