Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. --[[local rpcKey = {"‰","®","þ","÷"}
  2. local newKey = "00"
  3. local new = game.ReplicatedStorage.Function:InvokeServer("Combat", rpcKey, {"RefillKeys", newKey})
  4. print(new, #new)]]
  5. -- RemoteSpy for ProtoSmasher
  6. -- Written by Autumn on V3rmillion (fixed by 3dsboy08)
  7.  
  8. local enabled = {
  9. -- Set any of these objects to false to stop logging them
  10. BindableEvent = true;
  11. BindableFunction = true;
  12. RemoteEvent = true;
  13. RemoteFunction = true;
  14. }
  15.  
  16. function EscapeString(s, quoted)
  17. local v = ""
  18. for i = 1, string.len(s) do
  19. local c = string.byte(s, i)
  20. -- other escapees with values > 31 are "(34), \(92)
  21. if c < 32 or c == 34 or c == 92 then
  22. if c >= 7 and c <= 13 then
  23. c = string.sub("abtnvfr", c - 6, c - 6)
  24. elseif c == 34 or c == 92 then
  25. c = string.char(c)
  26. end
  27. v = v.."\\"..c
  28. else-- 32 <= v <= 255
  29. v = v..string.char(c)
  30. end
  31. end
  32. if quoted then return string.format("\"%s\"", v) end
  33. return v
  34. end
  35. local meta,oldmeta = getrawmetatable(game),{}
  36. make_writeable(meta)
  37. for i,v in next,meta do oldmeta[i] = v end
  38. function formatargs(args,showkeys)
  39. --if #args == 0 then return "N/A" end
  40. local strargs = {}
  41. for k,v in next,args do
  42. local argstr = ""
  43. if type(v) == "string" then
  44. argstr = "\"" .. v .. "\""
  45. elseif type(v) == "table" then
  46. argstr = "{" .. formatargs(v,true) .. "}"
  47. else
  48. argstr = tostring(v)
  49. end
  50. if showkeys and type(k) ~= "number" then
  51. table.insert(strargs,k.."="..argstr)
  52. else
  53. table.insert(strargs,argstr)
  54. end
  55. end
  56. return table.concat(strargs, ", ")
  57. end
  58. local realmethods = {}
  59. realmethods.Fire = Instance.new("BindableEvent").Fire
  60. realmethods.Invoke = Instance.new("BindableFunction").Invoke
  61. realmethods.FireServer = Instance.new("RemoteEvent").FireServer
  62. realmethods.InvokeServer = Instance.new("RemoteFunction").InvokeServer
  63. meta.__namecall = function(self, ...)
  64. if enabled[self.ClassName] then
  65. local args = {...}
  66. local ret = {oldmeta.__namecall(self, ...)}
  67. --print("hi")
  68. warn(self.ClassName.." called!\nPath: "..self.GetFullName(self).."\n".."Args: "..formatargs(args).."\nReturn: "..formatargs(ret))
  69. return unpack(ret)
  70. else
  71. return oldmeta.__namecall(self, ...)
  72. end
  73. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement