I know how to make a Gui toggle from visible to not visible using one button, but I am unfamiliar with the onKeyDown function. Here is the script:
function onClick()
Gui = script.Parent.Parent.Parent.ChatGui.Frame.TextBox
if Gui.Visible == false then
Gui.Visible = true
else
Gui.Visible = false
end
end
script.Parent.MouseButton1Down:connect(onClick)
How do you turn this into an onKeyDown function?

1 comment
Thank you so much!