How to know when the player is chatting In the chatbar?

So basically, what im trying to achieve is. When a player is chatting in the chat of the roblox, while they are typing how do i detect while they are typing. Here is what i achieved so far.

local UIS = game:GetService("UserInputService")

UIS.InputBegan:connect(function(input, gameProcessedEvent)
if not gameProcessedEvent then
— logic
end
end)

So the above script, is like when i try typing in the chat it does not the do the logic BUT when i type like random letters outside chat it does the logic.

Resolved! Sorry i didnt search on the devforum, i got the answer.

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