Chat issues upon switching to "TextChatService" as Chat Version

Hey! Since I have switched to the newer chat version, there have been 1 persistent issues for specefic users. They are simply not able to chat / the message they type is not being displayed in the chat:

The only thing I am doing with the chat is really just to set tags which work’s fine (please don’t mind the horrible script. It’s an old script and I’ve updated it to the newer system):

TextChatService.OnIncomingMessage = function(message: TextChatMessage)
	local props = Instance.new("TextChatMessageProperties")

	if message.TextSource then
		local player = Players:GetPlayerByUserId(message.TextSource.UserId)
		if player:FindFirstChild("ResetChatTag") then else
			local GroupCheckValue = player:WaitForChild("GroupChecker")
			local RankCheck = player:WaitForChild("RankChecker")
			local apipresets = player:WaitForChild("ApiPreSetsRoManager")
			local boostedValue = nil
			if apipresets:FindFirstChild("Boosted") then
				boostedValue = apipresets:FindFirstChild("Boosted")
			end

			local PlayerCheck = PlayerTags[player.UserId]
			local GroupCheck = GroupTags[RankCheck.Value]

			if boostedValue.Value == true then
				props.PrefixText = "<font color='#"..BoosterInformations.TierOne.FontColor:ToHex().."'>"..BoosterInformations.TierOne.Name.."</font> ".. message.PrefixText
			end

			for Rank,Requirements in pairs(RankRanges) do
				if RankCheck.Value >= Requirements.Min and RankCheck.Value <= Requirements.Max then
					props.PrefixText = "<font color='#"..GroupTags[Rank].FontColor:ToHex().."'>"..GroupTags[Rank].Name.."</font> ".. message.PrefixText
				end
			end

			if GroupCheck ~= nil then
				props.PrefixText = "<font color='#"..GroupCheck.FontColor:ToHex().."'>"..GroupCheck.Name.."</font> ".. message.PrefixText
			end

			if PlayerCheck ~= nil then
				props.PrefixText = "<font color='#"..PlayerCheck.FontColor:ToHex().."'>"..PlayerCheck.Name.."</font> ".. message.PrefixText
			end
		end
	end

	return props	
end

If users try to rejoin, the issue persists and I really don’t know what to do. Any ideas?

Wrong category, you should put this in #help-and-feedback for scripting.

Well it’s not particular help and feedback for scripting. It is rather a general problem.

Consider making a bug report then

I asume that scripting support is then still the closets so I have switched the topic to this. I also will not do a bug report since I am not sure if it’s my fault or Roblox’s.

1 Like

Isn’t there a client-side script missing to listen for this “return”? I’m not sure, but I think it’s necessary. I can’t open my place right now to check, but I have a very customized chat using the new service and it uses scripts to listen on both the client and the server.

I am listening to user messages and then return a properties object. The script I‘ve sent is also a local script and it works fine except for some users I assume.

If it works and displays the messages for some, then the error is probably in the rank checks you have in the script.

I‘ve also tried simulating an event where I would have no nametag and this worked as well.

Yes, it should work because it has an If to check if there is a tag and the problem may be right there. Some tag does not have the correct naming, or something is missing. Take a look at the tags that are not passing.

As said, this issue is rather random. Some users who should not have any nametag will have their message bugged, for some users then it works without any issue.