TheodoresScripts

Chat Backwards Troll

Sep 28th, 2020
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. local mt = getrawmetatable(game);
  2. local old = {};
  3. for i, v in next, mt do old[i] = v end;
  4.  
  5. setreadonly(mt,false)
  6.  
  7. mt.__namecall = newcclosure(function(...)
  8. local method = tostring(getnamecallmethod());
  9. local args = {...}
  10.  
  11. if method == 'FireServer' and args[1].Name == 'SayMessageRequest' then
  12. local t = {}
  13. local string = tostring(args[2]);
  14. local number = #args[2]
  15.  
  16. for i = 1,#args[2] do
  17. table.insert(t,tostring(string:sub(number,number)))
  18. number = number - 1
  19. end
  20. args[2] = tostring(table.concat(t))
  21. return old.__namecall(unpack(args));
  22. end
  23. return old.__namecall(...)
  24. end)
  25.  
  26. setreadonly(mt,true)
Add Comment
Please, Sign In to add comment