CreateCoreMessage / CreateServerMessage

Quick question how could I make a Multi-Colored chat message.
I play a-lot of GMOD and I have a example of what I want it to look like below.
image
I know making 1 color messages is possible what what about 2 color or 3/4/5 color messages.

2 Likes

You can use rich text formatting to achieve this.

How to enable rich text in chat:

How to format/use rich text:

2 Likes

This is kinda a cheap method of doing it and it also allows other players to use markup…
bad idea.

You might just have to use a custom chat module then.
Not sure if you can achieve stuff like this without extra modding but maybe you can dig around in the chat scripts and see what you can do.

2 Likes

This seems to be the solution but ile wait and see if anyone else wants to voice there option.

Thanks !

2 Likes

If you switch to the new TextChatService, you can do this easily. It has nothing to do with StarterGui:SetCore().

There’s a TextChannel inside of the service when the game starts, called RBXGeneral, and you need to call this method of it:

1 Like

Wait what?
I’m confused.
How do I switch?

1 Like

It should be a property of TextChatService or Chat.

3 Likes

image
This?

1 Like

Yes. I made a system a few days ago to add chat tags to the message, and it includes rich text.

1 Like

Ah! Nice.
Now how would I write with multi-line colors.

Should be able to use rich text inside system messages?

I can’t find the event inside TextChatService service.

Are you talking about this?

local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")

TextChatService.OnIncomingMessage = function(message: TextChatMessage)
	
	message.TextChannel:SendAsync()

end
2 Likes

When you run the game, there should be a folder added to the service, which contains default TextChannels. The one you would call is RBXGeneral.

1 Like

Lemmie take a look, real quick.

image
Found it.

Wait this doesent work,

  1. RichText is not enabled
    image
  2. Why is my player the one talking?

Are you using :DisplaySystemMessage()?

Didn’t know that existed :skull:
I’m glade this new chat has not been added.
I would be screwed