How i can filter bad words?

I’m working on a board system where players can write anything on it, but they can write bad
:thinking: words and I have no idea how to turn those words into Hashtag

and thank you :purple_heart:

2 Likes

if they are using a marker to write words, then I don’t think it’s possible to filter it. but if they type in text, then use TextService

1 Like

it’s works!! i noticed that i have to play as roblox not in roblox studio

local TextService = game:GetService("TextService")
local Text = ""

local success, error = pcall(function()
    Text=TextService:FilterStringAsync("Hello World", player.UserId):GetChatForUserAsync(player.UserId)
end)

if not success then
	warn(error)
end
	
print(Text)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.