So i was looking into how to apply a gradient to a chat via TextChatService, but only for specific messages sent by the server. i can only find how to use this using "OnChatWindowAdded" but id like to SEND a message with this gradient, or im not sure how to properly filter messages so the correct ones have the gradient. lmk if you need any info! thanks in advance.
#Issue with TextChatService
1 messages · Page 1 of 1 (latest)
Okay so Roblox doesn’t let you just slap a gradient on a message directly when you send it from the server, but here’s what actually works: you send a normal system message using TextChatService:DisplaySystemMessage(), but you include some kind of tag or unique marker in the message text (like [GRADIENT]). Then on the client, you listen to TextChatService.OnIncomingMessage and check if that tag is there. If it is, you apply a gradient to that message only, easy filter, no global styling needed. It’s not about OnChatWindowAdded, that’s for full UI overrides. You’re just modifying properties per message.
So you send a NORMAL message from the server, detect it from the client, and change it on the client. Make sure to have a custom tag for the server message when u send it
@proven escarp (ping so yk i answered)