Client phrase parts

Is there a way to make something happen to parts (i.e. dissappear) when something is said, but only on the client that works on TextChatService? I have a module script that works on LegacyChatService, but breaks when switching to TextChatService. So, is there a way, likely as a LocalScript, to make the event stated above happen? I’m not that experienced in scripting.

I’m pretty sure you can use a .Chatted event for this
Example:

local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(plr)
   plr.Chatted:Connect(function(msg)
      if msg == "any msg you want" then
         --do stuff
      end
   end)
end)
2 Likes

It doesn’t work, the phrase is meant to be an emote.

Did a quick search on the topic and found this:

Hope this helps!

The emote message the part should react to is not animated, so is there a way to make a part react to a non-animated emote (i.e. /e ice)?

I am still waiting for a solution as how to make non-animated emotes/commands that start with /e to make a part do something only in the client.

If the client uses a command, this is certainly triggered by the server.
You just need to create a RemoteEvent for the server to send to the client that used the command and execute the desired function.

Why exactly are you trying to use “/e”? Is it so the command doesn’t appear in chat? There is a way to do this without cheating off emotes

How exactly do you make a certain word not appear in chat when you say it, and something happens to a part afterwards?

Use a TextChatCommand instance