#Use FilterStringAsync() without player connected to current server
1 messages · Page 1 of 1 (latest)
i might be wrong so doubble check but
u should: take the filtered message (by player who sent it)
Then i BELIEVE text channel SendAsync (or whatever it was) automacly filters it
that wont work because 1: the message isn't filtered when I send it using messaging service meaning I have to run FilterStringAsync to filter it, which gives an error because the player is not in server and 2: Although it does get filtered when a player sends it, it can be abused by simply firing the remote event with any text they want
u got my message wrong
you intercept message
when typed in normal chat
if u do that, then no need for filter iirc
but if u use custom ui with remotes
then u filter on server obv
and when u recieve it, and display thro text channel SendASync, i believe roblox will filter it based on players age etc
(the one that sees it)
k ill give it a try and get back to you
You have to filter messages on the server where the sender is, using their player object. Then send the already filtered text to other servers via MessagingService or MemoryStore. That way everyone sees a safe version.
I figured it out. I had to do what @hardy pebble said and filtered it with GetNonChatStringForBroadcastAsync() so it is safe for everyone. I tried to use the SendAsync but it wouldn't work because sendAsync sends a message with local script as the player. This means that everyone would repeat what one said