Advertisement
MrBlack2010

A way to bypass Roblox chat filter

May 19th, 2022
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.91 KB | None | 0 0
  1. local detect=game:HttpGet("https://pastebin.com/raw/PEE9hPW1",true);
  2. local mt=getrawmetatable(game);
  3. local namecall=mt.__namecall;
  4. local unicode="ꜚ";
  5. setreadonly(mt,false);
  6.  
  7. function split(txt)
  8.     local words={};
  9.     for word in txt:gmatch"%S+" do
  10.         table.insert(words,word);
  11.     end
  12.     return words;
  13. end
  14.  
  15. mt.__namecall=newcclosure(function(self,...)
  16.     local params={...};
  17.     if (self.ClassName=="RemoteEvent") and self.Name=="SayMessageRequest" then
  18.         --params[1] = chat
  19.         for i,v in next,split(params[1]) do
  20.             if detect:lower():find(v:lower()) then
  21.                 local fixed=string.gsub(v,".",function(c)
  22.                     return c.." "..unicode:rep(2);
  23.                 end)
  24.                 params[1]=string.gsub(params[1],v,fixed);
  25.             end
  26.         end
  27.     end
  28.     return namecall(self,unpack(params));
  29. end)
  30.  
  31. warn"successfully hooked chat to chat bypass!";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement