im making a system where users can have a name but with roblox modiration
rn players can ake names with bad words in other langoiuges then english even in chat but maiking susch a system means stil that bad words are hisdden in the game what can flag moderation
so i thought to encode the banned words list am i safe to do
You should really avoid dealing with your own moderation, it will most likely lead to your game getting flagged and or moderated. Please just use the built in text filtering feature.
local TextService = game:GetService("TextService")
local function getFilterResult(text, fromUserId)
local filterResult
local success, errorMessage = pcall(function()
filterResult = TextService:FilterStringAsync(text, fromUserId)
end)
if success then
return filterResult
else
warn("Error generating TextFilterResult:", errorMessage)
end
end
based with my experience, the filter system that roblox uses and offers is pretty good. pretty sure it will work for SOME languages other than english. just experiment.