I am currently trying to script a filtering system for a text system, however I cannot find out a way to do this. The following script is from a module script that I made for a server script.
local success, Result = pcall(TextService.FilterStringAsync, TextService, Entered, Player.UserId)
if success then
print(Result:GetNonChatStringForBroadcastAsync())
else
warn(Result)
end
Player.Character.Head:WaitForChild("PlayerDisplay").Nickname.Text = Result:GetNonChatStringForBroadcastAsync()