Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a GUI Invisible?

Hey guys I have been struggling to make this GUI Invisible can someone help please?

local StarterGui = game:GetService('StarterGui')
script.Parent.MouseButton1Click:connect(function()
	script.Parent.Parent.Visible = false
	script.Parent.Sound:Stop()
	StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
end)

2 comments

0

Well, which Gui are you having problems with? Because I see two Guis that you're trying to set visibility to. The frame holding the button, and the Roblox CoreGui

0

The RobloxCoreGui is to change the taskbar but the one I'm trying to change is the frame holding the button.

1 answer

Try to replace :

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)

by

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)

You are actually making them visible, not invisible

4 comments

0

No that's for the bar above the GUI

0

But should I move that out of the end?

0

What's script.Parent.Parent class ?

0

That's the frame

This discussion is preserved as it was. New answers, comments, and votes are closed.