local UIS = game:GetService("UserInputService")
local button = Enum.KeyCode.F --F is just a random one
local frame = --the frame path
UIS.InputBegan:Connect(function(input, typing) --input returns the key pressed and typing says if it is processed.
if not typing and input.KeyCode == button then
frame.Visible = true
end
end)
local UIS = game:GetService("UserInputService")
local button = Enum.KeyCode.F --F is just a random one
local frame = --the frame path
UIS.InputBegan:Connect(function(input, typing) --input returns the key pressed and typing says if it is processed.
if not typing and input.KeyCode == button then
frame.Visible = not frame.Visible
end
end)