Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. -- RemoteSpy for Synapse
  2. -- Written by Autumn (fixed by 3dsboy08) on V3rmillion
  3.  
  4. function formatargs(args,showkeys)
  5. if #args == 0 then return "N/A" end
  6. local strargs = {}
  7. for k,v in next,args do
  8. local argstr = ""
  9. if type(v) == "string" then
  10. argstr = "\"" .. v .. "\""
  11. elseif type(v) == "table" then
  12. argstr = "{" .. formatargs(v,true) .. "}"
  13. else
  14. argstr = tostring(v)
  15. end
  16. if showkeys and type(k) ~= "number" then
  17. table.insert(strargs,k.."="..argstr)
  18. else
  19. table.insert(strargs,argstr)
  20. end
  21. end
  22. return table.concat(strargs, ", ")
  23. end
  24.  
  25. local console = Synapse:GetConsole()
  26. console:CreateConsole("Synapse RemoteSpy")
  27.  
  28. local realmethods = {}
  29. realmethods.Fire = Instance.new("BindableEvent").Fire
  30. realmethods.Invoke = Instance.new("BindableFunction").Invoke
  31. realmethods.FireServer = Instance.new("RemoteEvent").FireServer
  32. realmethods.InvokeServer = Instance.new("RemoteFunction").InvokeServer
  33.  
  34. function hook(methodname, self, ...)
  35. local args = {...}
  36. local ret = {realmethods[methodname](self,...)}
  37. print(args[2]:GetFullName())
  38. console:Write(self.ClassName.." called!\nPath: ")
  39. console:SetColor(console.White)
  40. console:Write(self:GetFullName())
  41. console:SetColor(console.LightGray)
  42. console:Write("\n".."Args: ")
  43. console:SetColor(console.White)
  44. console:Write(formatargs(args))
  45. console:SetColor(console.LightGray)
  46. console:Write("\nReturn: ")
  47. console:SetColor(console.White)
  48. console:Write(formatargs(ret))
  49. console:SetColor(console.LightGray)
  50. console:WriteLine("\n")
  51. return unpack(ret)
  52. end
  53.  
  54. console:SetColor(console.White)
  55. console:WriteLine("Synapse RemoteSpy v1.0.0 // by 3dsboy08\n")
  56. console:SetColor(console.LightGray)
  57. Synapse:SetNamecallHook("FireServer", function(self, ...)
  58. if self:IsA("RemoteEvent") and self~="PINGRE" then
  59. hook("FireServer", self, ...)
  60. end
  61. end)
  62. Synapse:SetNamecallHook("InvokeServer", function(self, ...)
  63. if self:IsA("RemoteFunction") and self~="PINGRE" then
  64. hook("InvokeServer", self, ...)
  65. end
  66. end)
  67.  
  68. game.ReplicatedStorage.Send:FireServer("AddHit", game.Workspace.HitTracker.New, "1dbgt123 Hit WheresTheBeef666's Right Arm. Power: 100%. Hit Distance: 33 studs. Distance from puck:733 studs.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement