i made a custom chat and for some reason it wont filter text, what do i do?
I did use TextService:FilterStringAsync(Message, Player.UserId)
TextService:FilterStringAsync(Message, [player.UserId])
or do
local userId = player.UserId
TextService:FilterStringAsync(Message, userId)
The first has a red line under the [ and the second does the exact same as the current one ive got
FilterStringAsync
doesn’t return the filtered text. It returns a TextFilterResult
object from which you must call GetChatForUserAsync
with the recipient’s userID as the parameter.