Filtering wont work

local textService = game:GetService("TextService")
local filterThis = text

filterThis = textService:FilterStringAsync(filterThis, player.UserId)


My code wont work i have even been in game and trying it out. What I am trying to do is filter a name for a project / World that the player will be creating. The client then sends the text to the server on a Remote Function which will return the filtered text. But it dosent seem to work at all, some how it prints Instance instead.

The Project print was the name that came from the client to the server.

Then after it gets “Filtered” it prints Instance

What happens is that it returns TextFilterResult which is an instance, you must use one of its functions, if it is for all use GetNonChatStringForBroadcastAsync.

local textService = game:GetService("TextService")
local success, Result = pcall(textService.FilterStringAsync, textService, text, player.UserId)
if success then

Thanks for the response, I Will be sure to check this out! Also it’s just a filtering for players project names so it will only be view able for the only player