I was making modifications to our games Chat Anti-Exploit system, (Blocks words like :kick, :noclicp, ect.) but it is giving me the following error:
I will be censoring some of the banned words in the script due to their racist or offensive nature, but if anyone has a fix, it would be appreciated.
local groupID = 12986119
local groupRank = 254
local BannedWords = {
":cmds",
";cmds",
":fly",
";fly",
";clip",
":clip",
":kill",
";kill",
":kick",
";kick",
":ban",
";ban",
":noclip",
";noclip",
";nc",
":nc",
";ws",
":ws",
":jp",
";jp",
";btools",
":btools",
":f3x",
";f3x",
":F3X",
";F3X",
";speed",
":speed",
"cmds",
"cmds",
"fly",
"fly",
"clip",
"clip",
"kill",
"kill",
"kick",
"kick",
"ban",
"ban",
"noclip",
"noclip",
"nc",
"nc",
"ws",
"ws",
"jp",
"jp",
"btools",
"btools",
"f3x",
"f3x",
"F3X",
"F3X",
"speed",
"speed",
"censored",
"censored",
"censored",
"censored",
"censored",
"censored",
"censored",
"censored",
"censored",
"censored",
""
}
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if table.find(BannedWords, msg) then
if not plr:GetRankInGroup(groupID) >= groupRank then
print("Group rank bypass | Attempted word: "..msg)
else
plr:Kick("AE | Banned word usage.\n Word: "..msg)
print("Player kicked Word: "..msg)
end
end
end)
end)