-- Code is below.
local UIS = game:GetService('UserInputService')
UIS.InputEnded:connect(function(input)
if input.KeyCode == Enum.CoreGuiType then
end
end)
I’m really confused because you aren’t supposed to be able to access CoreGui
And I was testing enum types and found that.
Enum.CoreGuiType enum is generally used by developers for StarterGui:SetCoreGuiEnabled function to disable certain CoreGuis like leaderboard, chat, emotes menu, ect.