Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I remove a specific message in chat?

Asked by
iOwn_You 543 Moderation Voter
5 years ago

I know it's possible to remove a specific message on the chat, but I couldn't find anywhere on the wiki. anyone has some helpful information?

0
Do you mean like a specific word. and You can't remove chat from the game, Please respond to me so I can help you the best I can! :D Enomphia 39 — 5y
0
Delete a specific message, like i'm making a "Draw With Friends" sort of game, and I cant have people saying the answer on chat, so if someone says it it needs to be removed, is the only solution making a custom chat entirely? iOwn_You 543 — 5y

2 answers

Log in to vote
2
Answered by
iOwn_You 543 Moderation Voter
5 years ago

I got it figured out, the module was MessageSender, if the message was the word i wanted to blacklist I would just not fire the remote event. pretty simple

0
that's pretty smart Vulkarin 581 — 5y
Ad
Log in to vote
0
Answered by 5 years ago
--LocalScript

local Message = ""

local Local_Player = game:GetService("Players").LocalPlayer

Local_Player.Chatted:Connect(function(x)
    if x == Message then
        --What happens when the message is said Eg: Local_Player.Character.Humanoid.Health = 0 | Or. Local_Player:Kick("MESSAGEHERE")
    end
end)
0
that's not what I meant, thats to do something when the player sends a message, i want to *remove* the message the player sent iOwn_You 543 — 5y
0
You can't. You would have to make your Own message System. Enomphia 39 — 5y
0
well, i could and I did, look at the answer i posted. iOwn_You 543 — 5y

Answer this question