ChatPrint with color

hello

i want to use the function ChatPrint with color argument, is there a way to do so?

example:



for k, v in player.GetAll() do
    v:ChatPrint(Color(255,0,0), "Test")
end

unfortunately, it only gets a string but not a color too.

is there a good alternative?

thanks!

You’ll have to network to the client and tell it to print a coloured message with chat.AddText.

thanks!
btw, is there a way to print custom things to the chat with AddText?
because it usually prints the text with the name in the beginning of the text.
i want a full control of what is printed out to the chat window

thanks

chat.AddText will not add it with the name of the player… and it will only show to the client in which the code was executed.