Does anyone know how to disable /e dance where the player won’t dance and the /e dance text won’t show up in the chat or chat bubble…
New method:
- Play test a game in studio, copy the
Animate
local script in your character model ingame.Workspace
- Exit out of the play test and place this script into
game.StarterPlayer.StarterCharacterScripts
to override the default animation script - Comment out, or remove references to emotes such as the chat hook (lines 731 to 766)
- Play test a game in studio, copy the
ClientChatModules
folder located ingame.Chat
- Exit out of the play test and place this folder into
game.Chat
to override the emote command - Remove all the contents of this folder other than the
CommandModules
folder - Remove everything from that folder other than
InsertDefaultModules
andPlayEmote
- In the
PlayEmote
script, you can comment out, or remove lines 63 to 146 to disable it from functioning - Change line 148 to
return false
as this will stop the chat from being swallowed
If you’re feeling lazy and just want to insert the already changed scripts into the locations mentioned above, then feel free to use this: DisableEmotes.rbxm (11.9 KB)
Old method
To do this, you would need to fork the Animate local script (located in the character) and also fork the whole (to avoid compatibility issues) chat system (located in game.Chat
).
In the Animate local script, you will need to remove all references to emote
and you can completely remove the player chatted hook entirely from there. Make sure the forked script is put into StarterCharacterScripts
After forking the chat, you will have to edit the ChatServiceRunner
script, and delete lines 372-374, this will stop it from swallowing the chat if the /e
or /emote
prefix is used when sending a message. Make sure the forked chat is put into game.Chat
, this will override the chat.
(post deleted by author)
The only difference is they’ve made is that the emotes in the chat are now modularised (and rightly so).
The same method still applies to the Animate local script. Comment out, or remove references to emotes such as the chat hook (lines 731 to 766). Then, put this script into game.StarterPlayer.StarterCharacterScripts
to override the default animation script.
To adapt to the new change, you only need to fork the ClientChatModules
folder. Then, delete all the contents of this folder other than the CommandModules
folder. After that, you should remove everything from that folder other than InsertDefaultModules
and PlayEmote
. In this file, you can comment or remove lines 63 to 146 to disable it from functioning, and change line 148 to return false
as this will stop the chat from being swallowed. Finally, you should put the ClientChatModules
folder in game.Chat
to override the emote command.
If you’re feeling lazy and just want to insert the already changed scripts into the locations mentioned above, then feel free to use this: DisableEmotes.rbxm (11.9 KB)
@General_Scripter Hi Aaron - it’s slightly different to how it was before. I have tried emulating the old scripts to the newer ones but it doesn’t seem to work. Is there any chance you could take a look? - would be greatly appreciated.
Graci,
King.