I’m currently trying to filter text using TextService, FilterStringAsync, and GetNonChatStringForBroadcastAsync. However, when I try to filter text using GetNonChatStringForBroadcastAsync, it always returns Instance.
Here’s the code for the server:
-- above code for event local textService = game:GetService("TextService") -- defined outside of event local txtObject = textService:FilterStringAsync(message, plr.UserId) local msgFiltered = txtObject:GetNonChatStringForBroadcastAsync() print(tostring(msgFiltered)) -- print debug -- more code for receiving message
Does anybody know why this is happening? I read the documentation and it should be returning a string.