0

# How do I make a gui correspond with a keyboard key?

How do I make a gui button for a key on a keyboard? Ex: A gui that is also a shift key

0
SanityMan 239
7 years ago

If you are using a local script, you can use GetMouse on the LocalPlayer, and have a Key event. I prefer the KeyUp event, which triggers after a key is released:

--IN A LOCAL SCRIPT

game.Players.LocalPlayer:GetMouse().KeyUp:connect(function(key)
if key == "q" then --or whichever key