How can I make a navigatable menu using arrow keys

As the title states: How can I make a menu UI that will select buttons using the arrow keys?

I’ve seen other posts about this but not much information in them. There is ways to do it but I am not able to find good places to look to even grasp the starting point of it. A good example is using an Xbox controller on a menu.

You can detect it with UserInputService to check if the player is trying to move around with there arrow keys, and then you can move it around in the Menu UI if its visible.

1 Like

When the arrown button clicked, set the actual frame to visible = false and the requested frame to visible = true. Its simple!

1 Like

Here is the full script:

local ActualFrame = script.Parent.Parent.E  -- change “E” to the name of the actual frame
local NextFrame = script.Parent.Parent.E  -- change “E” to the name of the next frame
local show = false
script.Parent.MouseButton1Click:Connect(function()
                ActualFrame.Visible = false
                NextFrame.Visible = true
        end
end)

Tell me if I am wrong!