PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

SetCoreGuiEnabled

This function sets whether the CoreGui element associated with the given Enum/CoreGuiType is enabled or disabled.

The top bar can not be disabled using this function. To disable the top bar, set TopbarEnabled to false using StarterGui/SetCore. This will also disable the element associated with all Enum/CoreGuiType|CoreGuiTypes.

For more information on how to use this function, see the article on Articles/Disabling Parts of Game Interface|disabling the game interface.

Parameters

Name Type Default Description

The given `Enum/CoreGuiType

Whether to enable or disable the given Enum/CoreGuiType

Returns

Return Type Summary

Code Samples


StarterGui:SetCoreGuiEnabled

The following line of code would be used to disable all optional elements of the /CoreGui for the LocalPlayer.

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