Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a GUI Invisible?

Asked by 8 years ago

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)
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 M39a9am3R 3210 — 8y
0
The RobloxCoreGui is to change the taskbar but the one I'm trying to change is the frame holding the button. BennyBoiOriginal 293 — 8y

1 answer

Log in to vote
0
Answered by
Vitou 65 Snack Break
8 years ago

Try to replace :

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

by

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

You are actually making them visible, not invisible

0
No that's for the bar above the GUI BennyBoiOriginal 293 — 8y
0
But should I move that out of the end? BennyBoiOriginal 293 — 8y
0
What's script.Parent.Parent class ? Vitou 65 — 8y
0
That's the frame BennyBoiOriginal 293 — 8y
Ad

Answer this question