So.... I want to make filter from Russians Words (because some filtering is not take)
And I can't make string.lower() Where's my error?
local Black_list = {
["???????? ????"] = true,
["???????? ?????"] = true,
["???????? ???"] = true,
["???????? ?????"] = true,
["???????? ???????"] = true,
["????????"] = true,
["???????? ????"] = true,
}
local TeleportService = game:GetService("TeleportService")
game.Players.PlayerAdded:Connect(function(Player)
Player.Chatted:Connect(function(Message)
if Black_list[string.lower(Message)] then
print("Is bad word")
else
print("Not bad word")
end
end)
end)

1 comment
It should work fine. Perhaps you're looking for string.find?