I am trying to use the TextChatService.OnIncomingMessage callback; however, I am unable to get it to run. In the following script, both the top and bottom prints appear in console, but “incoming message” is never seen. How can I adjust my code to function as intended?
print("Running")
game:GetService("TextChatService").OnIncomingMessage = function()
print("Incoming message")
return
end
print("Connection successful")
@Katrist Do you happen to know what I would use to achieve this behavior with the legacy chat? I’d like to change the text of incoming messages for certain users.