Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cursewords = {
- "fuck";
- "bitch";
- "shit";
- "hell";
- "ass";
- };
- function filter(message)
- local filmsg
- for i,v in pairs(cursewords) do
- if string.find(message, v) then
- filmsg = string.gsub(message, v, "#", string.len(v))
- return filmsg
- end
- if not string.find(message, v) then
- filmsg = message
- return filmsg
- end
- end
- end
- game.Chat.BubbleChatEnabled = true
- for i, v in pairs(game.Players:GetChildren()) do
- v.Chatted:Connect(function(msg)
- game.Chat:Chat(v.Character, filter(msg))
- end)
- end
Add Comment
Please, Sign In to add comment