Detect if player is typing with Text Chat Service

How do I tell if a player is typing in the chat with Text Chat Service?

I had a typing bubble feature that showed when someone was typing and it worked perfectly fine with the default chat, but when I switched to Text Chat Service the typing bubble didn’t work anymore.

Previous code I used to see if the player was typing:

local UserInputService = game:GetService(“UserInputService”)
UserInputService.TextBoxFocus:Connect(function(TextBox)
if TextBox.Name == “ChatBar” then
–Chatting
end
end)

image

Thanks for helping!!

Unfortunately, I think this is impossible due to the new Chat GUI being inside of CoreGui which you can’t really tamper with or use any events on, making it extremely limited to functionality. I suggest you stick with the legacy chat if you’d like to make “Typing” statuses.

3 Likes

Okay, thanks for the information!

you can use TextChatService.ChatBarInputConfiguration.IsFocused, but it is sometimes in accurate

1 Like