New In-Experience Text Chat System Public Release!

One thing I’m both worried and confused about is whenever I enable the new ChatService the default keybind swaps over to . rather than the / for me. It doesen’t look like thats the case in the examples above so I’d be quite happy if someone helped me out with a fix or explanation?

Hi, I still have a suggestion for the new Text Chat System:
If possible, it would be nice to have a sort of mentioning system in the Roblox chat. One like Discord or Guilded have, where you type ‘@ username’ and the message would show up in chat with maybe for example a slightly differently colored backround / outline. This would be very useful in games where many people are in the server, alot of the times I am having trouble chatting with friends in servers with many people because we often miss a message either because it gets flooded away quickly by the amount of people chatting or because its not visible enough. A mentioning feature like this would help with this problem and also help with a problem where people don’t know wether a message was meant to be towards you or towards another person.

I found a way to do it, but it’s pretty janky, here’s the code, a local script in StarterPlayerScripts.

game.TextChatService.OnIncomingMessage = function(msg: TextChatMessage)
	local Props = Instance.new("TextChatMessageProperties")
	
	for i, v in ipairs(game.Players:GetPlayers()) do
		if string.find(msg.Text, "@"..game.Players.LocalPlayer.DisplayName) then
			local Find = tostring(msg.Text:find("@"..game.Players.LocalPlayer.DisplayName)):split(" ")
			local Prefix = msg.Text:sub(1, Find[1]-1)
			local Middle = msg.Text:sub(Find[1], Find[1]+game.Players.LocalPlayer.DisplayName:len())
			local End = msg.Text:sub(Find[1]+game.Players.LocalPlayer.DisplayName:len()+1)
			Props.Text = Prefix.."<font color='#ffff55'>"..Middle.."</font>"..End
		end
	end
	return Props
end

Is there a working method to get chat messages on the server? MessageReceived is only firing on the client.

Another issue I’ve ran into: when posting messages that take up multiple lines, the chat doesn’t scroll all of the way down. Instead, it only scrolls down enough to show the first line of the message. This makes reading the chat quite annoying, as you have to focus it and scroll down yourself frequently.

2 Likes

Seems like the Chat GUI doesnt seem to be in explorer for some reason? (Play Test) Is that supposed to be like that?

Also is there gonna be a resizeable & moveable window option? @be_nj

We have an announcement coming soon, but there are properties on ChatWindowConfiguration that should allow you to do this now as a developer.

We dont expose any controls to the user to do this at this time.

Properties to make the Chat GUI replicate? I’m a bit confused of the context to what you meant

1 Like

Any way to remove the default team joined message yet? Checked everywhere.

1 Like

How are you supposed to create chat channels? I’ve seen no documentation on this.

2 Likes

I mean, it’s not bad i guess? The only problem is that the key to open the chat is now “;” instead of “/”

2 Likes

Is there a way to change TextStrokeColor for bubble chats?

Late but you would have to hook into textChatService.OnIncomingMessage and return a TextChatMessageProperties object with a modified PrefixText.

I noticed an error that spams on the server when moving a Team instance inside of a folder (That folder being under game>Teams)

3 Likes

Still having this issue on the server.

local TextChatService = game:GetService("TextChatService")
TextChatService.MessageReceived:Connect(function()
	print("test")
end)

This works on the client but on the server nothing fires. I hope that’s not the intended behavior!

1 Like

@bewarethepaws The topic is good, but I feel the topic is old, because this topic has existed since 2022 Jun. This means that this topic has existed for months, but I feel that it has existed for years. Is it normal to respond to an old topic even if it has existed for years?

Hi, this is the intended behavior. Can you tell us what your use case for this is?
If it’s for commands, we suggest you take a look at TextChatCommand | Roblox Creator Documentation

Hi, can you tell us if this is still occurring, and if it is, provide more details (i.e. place file, TextChatService.ChatVersion value, etc)

1 Like

Hi, yes, still getting this. Chat version is confirmed set as “TextChatService”

Here’s a repro:
TextChatServiceError.rbxl (46.6 KB)
Walk between the two pads twice to have the error appear.

As well as a link to the place I first noticed it:

2 Likes