How can I make it that you have to press a key to open a GUI

So, I made my game have to much options, what I want is When you press the “Tab key” a GUI opens and the Roblox leaderboard also moves in the Gui. How can I do this?
What I’m trying to explain:
My game right now


“TAB” Pressed

The GUI Opens with the leaderboard and the options shop, store…ect

Sorry for explaining to much I hope you understood and I wish you a good day.

2 Likes

From my knowledge, it’s not possible to move roblox’s core gui, you could, however, disable the leaderboard and make a custom one, which you can then tween when the player presses tab.

3 Likes

Agree with @Dyzody. You can’t move the coregui, you have to make yourself a leaderstats gui in able to do that.

If you want to make a Gui open when you press tab then try this example :

Tell me if there are any errors.

 local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.Tab then
   -- Write your stuff here

 end
end)
2 Likes