Boolean Player.isChatting or Player:isChatting()

I think it would be really helpful for developers if there was a method or property of the player that returned true if the player is currently chatting. I’ve seen methods that provide a workaround for this but they only work if the method was run before the player chats. This would be really helpful for people who have key commands that use the UserInputService but don’t want commands to run while the player is chatting. So far I haven’t seen any truly efficient method that does this.

2 Likes

InputBegan/Ended/Changed have a second parameter, “processed”, that is true if the input was already handled by ROBLOX (e.g. typing in a textbox).

This might solve the problem of having userinputservice commands running while a player chats but that doesn’t solve other problems where a player or script would want to know if a player is chatting or not

local focusedTextbox = game:GetService(“UserInputService”):GetFocusedTextBox()
local isChatting = focusedTextbox and focusedTextbox.Name == “ChatBar”

2 Likes

Hmm, that works. Thanks!

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