I've been using 'keybinds' in local scripts and they seem to work fine. The only issue is that: these 'keybinds' activate even when typing in the chat. I'm using UserInputService. Perhaps I should be using something else or perhaps I've been taking the wrong approach? Here is the script.
function KeyDown(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.F and InventoryOpened == false then (Insignificant stuff) end end game:GetService("UserInputService").InputBegan:connect(KeyDown)
I appreciate the help.
GameProcessedEvent
Did you see that?
The gameProcessedEvent
argument of the UIS events tell you whether the input was directed to the game or whether it was intercepted by something such as a TextBox. Check that to see if the user is typing, and then return out of the function if they are.