How to tell if a player is typing in chat?

So im making hotkey’s and whenever a player types that in chat the hotkey runs… How would I tell if someone was typing in chat?

3 Likes

For the event InputBegan, there is an argument named “gameProcessedEvent”, checking this to make sure it is false before executing the keybind will not only make sure they do not fire in chat, but also when they are typing in boxes and other game-related input. For more detail you can check the wiki article, just make sure you are referring to the UserInputService section.
http://wiki.roblox.com/index.php?title=Keyboard_input

13 Likes

Is it a bool or a object variable?

bool