FilterTringSync() always returning "TextFilterResult"

im working on a thing for my game that needs filtered text, i tried ot filter the text and it always returns with TextFilterResult

Heres the script:

local Event = game.ReplicatedStorage:WaitForChild("ChatComms")
local TextService = game:GetService("TextService")


Event.OnServerEvent:Connect(function(plr, message, messg)
	local NewMsg = TextService:FilterStringAsync(messg, plr.UserId, Enum.TextFilterContext.PublicChat)
	print(NewMsg)
	Event:FireAllClients(plr.Name, NewMsg)
end)

You may want to take a look at this, if you’re trying to get text directly. FilterStringAsync has always returned TextFilterResult, for as long as I can remember.

how do i put a string through and get a filtered string simply??? i dont understand the ducumnts

I suggest you look up some more info on this when you get some time, but you’d simply use:

Event:FireAllClients(plr.Name, NewMsg:GetNonChatStringForBroadcastAsync())

This will give you the string you’re looking for.