From a536c2b06a8d011b51433404e21031d523b4d0f3 Mon Sep 17 00:00:00 2001 From: SecondNewtonLaw <107165614+SecondNewtonLaw@users.noreply.github.com> Date: Wed, 6 Sep 2023 20:58:17 -0300 Subject: [PATCH] Use gethui to hide UI --- src/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/init.lua b/src/init.lua index ce25212..f8386ae 100644 --- a/src/init.lua +++ b/src/init.lua @@ -17,7 +17,8 @@ local New = Creator.New local ProtectGui = protectgui or (syn and syn.protect_gui) or function() end local GUI = New("ScreenGui", { - Parent = RunService:IsStudio() and LocalPlayer.PlayerGui or game:GetService("CoreGui"), + Parent = RunService:IsStudio() and LocalPlayer.PlayerGui or gethui and gethui() or game:GetService("CoreGui") + :FindFirstChild("RobloxGui") and game:GetService("CoreGui").RobloxGui or game:GetService("CoreGui"), }) ProtectGui(GUI) NotificationModule:Init(GUI)