Collapse Sidebar


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.


Name Type Default Description

The given Enum/CoreGuiType

Whether to enable or disable the given Enum/CoreGuiType


Return Type Summary

Code Samples


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