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.