How can I filter text on the server?

Hello, this is the question,

How can I filter text from the server?
Thanks!

1 Like

Can anyone help with FilteringAsync()? If so, please help me. Thanks!

You can use the following code to filter a string:

local chat = game:GetService("Chat")
local someMessage = "Hello world"
local filtered = chat:FilterStringForBroadcast(someMessage, playerWhoSent)

You’d also have to provide the player responsible for the input string, hence the second argument of the function.

1 Like

Alrighty, thanks bro for this!!

1 Like