How to switch from Legacy to TextChatService

Hello Devs,
I have read some articles on how to migrate from legacy to text chat service, followed all the steps and I have had no problems so far for all my games. With the current one I want to migrate although there are…
Although I changed it to TextChatService:


When I press F5 and test the chat appears:

which I do not see happening in other games. In addition I get this warning whenever I join studio:

Even though I followed all the steps, it keeps appearing

1 Like

any suggestions on this? Still have not fixed this issue yet.

Do you have any scripts that contain game:GetService("Chat")?

Nope. I do have like 20 NPCS with this line in a script inside of them:

game:GetService("Players").LocalPlayer.Chatted:connect(function(msg)
	local emote = ""
	if msg == "/e dance" then
		emote = dances[math.random(1, #dances)]
	elseif (string.sub(msg, 1, 3) == "/e ") then
		emote = string.sub(msg, 4)
	elseif (string.sub(msg, 1, 7) == "/emote ") then
		emote = string.sub(msg, 8)
	end
	
	if (pose == "Standing" and emoteNames[emote] ~= nil) then
		playAnimation(emote, 0.1, Humanoid)
	end

end)

i disabled this and it still appears.
i have this in my other games aswell though and they do not give me this warning, its super strange

Bildschirmfoto 2025-04-23 um 13.40.56
So I just discovered that I could make the chat visible. If I delete all of chats insides it won’t appear. does this come with any problems or can I proceed doing that?

I think as long as there are no errors you can do that

It’s getting deprecated/removed in a week anyway