Using task.wait() in the TextChatService.OnIncomingMessage causes both studio and the client to crash without a crash dump or a “Roblox needs to quit” popup. This causes a crash on every platform regardless of operating system or specs.
Quick question, what’s the use case for calling task.wait() in OnIncomingMessage? These callbacks should not yield since any yielding logic would prevent messages from being processed until they’re resolved.
Hey! Sorry for the extremely late response. I was porting over a script from the legacy chat system to use text chat service. It was an unintended side effect from blind copy and paste.