How I can check If player is typing in the chat now? (TextChatService)

Hello everyone, how I can check If player is typing in the chat now? I need this so that the menu doesn’t open when the player is typing. I’ve tried using the old methods, but they don’t work with TextChatService.

2 Likes

IIRC TextChatService is incredibly limiting and only has limited functionality, for now, just use the legacy chat as TextChatService does not support your use-case without making a custom UI and rescripting it all.

1 Like

What menu? You can use InputBegan's ‘GameProcessed’ parameter to reject inputs that have already been handled by the engine.
https://developer.roblox.com/en-us/api-reference/event/UserInputService/InputBegan

If you need a way to determine if the chat interface’s message box is focused you can reference it from the player’s ‘PlayerGui’ container and call the IsFocused instance method on it.
https://developer.roblox.com/en-us/api-reference/function/TextBox/IsFocused

3 Likes

Use the focus event on the text box located into the player’s gui.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.