Can TextChatService be used to CREATE chat messages?

Hi!

I’m trying to make death messages appear in chat from a selected pool of pre-set messages.
(e.g “_____ had died.” , “_____ has perished” … "

I’m just wondering if TextChatService can create messages by itself, as I’ve only used it before to alter or add pre-fixes to messages fired by a player. I THINK(??) I know how to go about making this script, for checking when a user on a team has died, and obtaining their name but I’d rather not start until I’m certain that TextChatService is the way to go about creating something like this.

Any assistance on what I could use, and how I’d use TextChatService (or any more suitable alternatives) would be greatly appreciated. Thank you!

1 Like

So, a system message? You can use the DisplaySystemMessage method of TextChannel.

local tcs = game:GetService("TextChatService")

--then
tcs.TextChannels.RBXGeneral:DisplaySystemMessage("<font color = \"rgb(85, 170, 0)\">This is a green system message.</font>")
1 Like

Yeah, my bad. :sweat_smile:

I see it’s not complicated, just wasn’t sure how to use it. Thank you!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.