#how to remove chat messages
1 messages · Page 1 of 1 (latest)
Sounds like a "Mute System", found in 1 seconds
https://devforum.roblox.com/t/mute-players-with-textchatservice/2519300/3
is it possible to make it so the player can still SEND the message but cannot SEE it
I belive, so i never touched it, but this is what i could find.
https://create.roblox.com/docs/reference/engine/classes/TextChatService#OnIncomingMessage
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local playerID = LocalPlayer.UserId
TextChatService.OnIncomingMessage = function(message: TextChatMessage)
local properties = TextChatService.ChatWindowConfiguration:DeriveNewMessageProperties()
if message.TextSource and message.TextSource.UserId == playerID then
properties.Text = " "
properties.PrefixText = ""
end
return properties
end