I have a blacklist that bans players if they're blacklisted in the script but I want to add a filter that bans players with a certain word / phrase in their username. How do I do this? My script is below
local blacklist = {
["BlacklistedPlayer"] = true
}
game.Players.PlayerAdded:connect(function(p)
if blacklist[p.Name] then
p:Kick("Ban Reason")
end
end)
if player is in local blacklist table then kick them for reason. How do I add a filter to this? Note that I want both the blacklist and filter to be in, not just replaced with a filter

1 comment
Thank you, this worked! It's also quite easy to add a phrase blacklist here