Let's say that I have a this
local UIS = game:GetService("UserInputService")
function keypress(inputObject, GPE)
if inputObject.KeyCode == Enum.KeyCode.G then
-- A bunch of code
end
end
UIS.InputBegan:connect(keypress)
How do I prevent this being key press whenever a player is using the "g" key to chat?

1 comment
Chatting is a GPE....