SetCoreGuiEnabled
For thread safety, this property is not safe to read in an unsynchronized thread.
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 |
||
|
|
Whether to enable or disable the given |
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.