Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This bans anyone who wishes to date on any server or game.
- --Just put the words you don't want them saying, and if they do say it, they're banned.
- --YellowPurpleFlowers
- filteredWords = { "kick ii","kick iicxn","ban iicxn","ban ii","block ii","block iicxn","kick all","ban all","block","sex","s3x","s*x","f*ck","sh*t","a** wh*le","b*tch","****","gf","bf","boy friend","girl friend","date","dating","","","","","","","","","","","","","","" }
- function checkForRecord(name)
- local name = string.lower(name)
- local p = script:GetChildren()
- for i = 1,#p do
- if string.lower(p[i].Name) == name then
- return true
- end
- end
- return false
- end
- function onChatted(msg, recipient, speaker)
- for i = 1,#filteredWords do
- if string.match(string.lower(msg), string.lower(filteredWords[i])) then
- if checkForRecord(speaker.Name) then
- table.insert(banned, string.lower(speaker.Name))
- speaker.Parent = nil
- else
- local tag = Instance.new("IntValue")
- tag.Name = speaker.Name
- tag.Parent = script
- speaker.Parent = nil
- end
- end
- end
- end
- function onEntered(newPlayer)
- for i = 1,#banned do
- if string.lower(banned[i]) == string.lower(newPlayer.Name) then
- newPlayer:Remove()
- end
- end
- newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
- end
- game.Players.ChildAdded:connect(onEntered)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement