How can I make it that it doesn’t show someone’s message when they type it in the chat, but they’re still able to type it in the chat? I don’t want to disable chat messages altogher, just make it that the players’ messages doesn’t show up. I’ve tried disabling ChatActive with SetCore, like this:
game.StarterGui:SetCore("ChatActive", {
active = false
})
I did it in a local script in starterplayerscripts, no such luck, did absolutely nothing. No errors either.
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
This makes the chat menu go away, but the player cannot type anything. Let me look some more.
Huh, the documentation is wrong or I read it wrong. This is what actually works. game.StarterGui:SetCore("ChatActive", false)
Ok, using player.Chatted(), deactivate the chat menu using the code above whenenver the player sends a chat message. Note that after they send the message, the menu will go away, but the player can still make the chat menu appear again.
I’m not trying to make the chat close whenever someone talks, I’m trying to make it that when someone talks their message doesn’t show on the chat. I tried that but all it does is close the chat, when the player opens it back up their message is there.
Ok look at the “FilterThing” module, it has an example.
Note I forgot to remove some of my edits to this, so in the ExtraDataInitializer there will be a group id you can delete (the one with the comment “Left as an example” above it)