#how to remove chat messages

1 messages · Page 1 of 1 (latest)

quick canyon
#

how can i make messages sent by you in the chat not appear to the player? i dont mind if this comes in a server or local script, and keep in mind that theres a 1 player max per server

#

and i dont mean above the character with a bubble i mean in the chat

astral fractal
quick canyon
astral fractal
astral fractal
#
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