Am i allowed to store bad words encoded in a script

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
1 Like

sure i use but that only filter english bad words

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.

I did and it allows me to say bad words in my language

Not really. The filter can really easily be bypassed

You should be good by making your own filter system, your experience should not be moderated.

The experience should not get moderated. He just has to make the filter really obvious and easy to understand

If there is one thing I learned with Roblox it’s better to be safe than sorry.