local StarterGui = game:GetService("StarterGui") function CoreEnabled () StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false) end if StarterGui ~= nil then CoreEnabled() end
SetCoreGuiEnabled only functions properly in a LocalScript
Use a LocalScript.
It's an easy, 1 line code.
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.All, false)