Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local players = game:GetService("Players")
- local unhuman_words = {'shid'}
- local function EF_OnChatted(msg,person)
- for _,v in pairs(unhuman_words)do
- if string.find(msg:lower(),
- v:lower()
- )then
- print('Jesus got mad:')
- print('Swear word found: '..v)
- print('Person: '..person)
- print('Msg: '..msg)
- break
- end
- end
- end
- for _,v in pairs(players:GetPlayers())do
- v.Chatted:Connect(function(msg)
- EF_OnChatted(msg,v)
- end)
- end
- players.PlayerAdded:ConnecT(function(v)
- v.Chatted:Connect(function(msg)
- EF_OnChatted(msg,v)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement