Parallaxox

Scam Message Removal

May 1st, 2020
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. --https://www.youtube.com/watch?v=10zD02hW2kw
  2. local function getPlayer(speaker)
  3.     return game.Players:FindFirstChild(speaker)
  4. end
  5. local function isScam(content)
  6.     local content1 = string.lower(content)
  7.     if content1:find("robux")then
  8.         return true
  9.     end
  10. end
  11. local function Run(ChatService)
  12. local function ParseMessage(speakerName, message, channel)
  13.     if isScam(message) then
  14.         return true
  15.     end
  16. return false
  17. end
  18. ChatService:RegisterProcessCommandsFunction("scamDetector", ParseMessage)
  19. end
  20. return Run
Add Comment
Please, Sign In to add comment