PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
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.