UiiN2IPCEO

remote spy2

Feb 10th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local Test = Instance.new("TextButton")
  6. local TextLabel = Instance.new("TextLabel")
  7.  
  8. -- Properties
  9.  
  10. ScreenGui.Parent = game.StarterGui
  11.  
  12. Frame.Parent = ScreenGui
  13. Frame.Active = true
  14. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  15. Frame.Draggable = true
  16. Frame.Position = UDim2.new(0, 719, 0.704572082, 0)
  17. Frame.Size = UDim2.new(0, -626, 0, 188)
  18. Frame.Style = Enum.FrameStyle.DropShadow
  19.  
  20. Test.Name = "Test"
  21. Test.Parent = Frame
  22. Test.BackgroundColor3 = Color3.new(1, 1, 1)
  23. Test.Position = UDim2.new(0, 60, 0, 75)
  24. Test.Size = UDim2.new(0, 515, 0, 75)
  25. Test.Font = Enum.Font.Cartoon
  26. Test.FontSize = Enum.FontSize.Size24
  27. Test.Text = "Call Remotes (F9)"
  28. Test.TextSize = 19
  29. Test.MouseButton1Click:connect(function()
  30.     -- Written by Autumn on V3rmillion
  31. -- Fixed and tweaked by Raspberry Pi
  32. local enabled = {
  33.     -- Set any of these objects to false to stop logging them
  34.     BindableEvent = false;
  35.     BindableFunction = false;
  36.     RemoteEvent = true;
  37.     RemoteFunction = true;
  38. }
  39.  
  40. local ignore = {
  41.     GetSetting = true;
  42.     GetSelection = true;
  43.     SelectionChanged = true;
  44.     GetAwaiting = true;
  45. }
  46.  
  47. local meta,oldmeta = getrawmetatable(game),{}
  48. setreadonly(meta,false)
  49. for i,v in next,meta do oldmeta[i] = v end
  50. function formatargs(args,showkeys)
  51.     if #args == 0 then return "N/A" end
  52.     local strargs = {}
  53.     for k,v in next,args do
  54.         local argstr = ""
  55.         if type(v) == "string" then
  56.             argstr = "\"" .. v .. "\""
  57.         elseif type(v) == "table" then
  58.             argstr = "{" .. formatargs(v,true) .. "}"
  59.         else
  60.             argstr = tostring(v)
  61.         end
  62.         if showkeys and type(k) ~= "number" then
  63.             table.insert(strargs,k.."="..argstr)
  64.         else
  65.             table.insert(strargs,argstr)
  66.         end
  67.     end
  68.     return table.concat(strargs, ", ")
  69. end
  70. local realmethods = {}
  71. realmethods.Fire = Instance.new("BindableEvent").Fire
  72. realmethods.Invoke = Instance.new("BindableFunction").Invoke
  73. realmethods.FireServer = Instance.new("RemoteEvent").FireServer
  74. realmethods.InvokeServer = Instance.new("RemoteFunction").InvokeServer
  75. meta.__namecall = function(...)
  76.     local tbl = {...}
  77.     local k = tbl[#tbl]
  78.     local t = tbl[1]
  79.     if (k == "Fire" or k == "Invoke" or k == "FireServer" or k == "InvokeServer") and (enabled[t.ClassName] and not ignore[t.Name]) then
  80.         local args = {}
  81.         for i=2,#tbl-1 do
  82.             args[i] = tbl[i]
  83.         end
  84.         local ret = {realmethods[k](...)}
  85.         local scriptcaller = getfenv(2).script
  86.         if scriptcaller == nil then
  87.             scriptcaller = "Not Found"
  88.         end
  89.         warn(t.ClassName.." called! " .." From Script: " .. tostring(scriptcaller:GetFullName()) .."!\nPath: "..t:GetFullName().."\n".."Args: "..formatargs(args).."\nReturn: "..formatargs(ret))
  90.         return unpack(ret)
  91.     else
  92.         return oldmeta.__namecall(...)
  93.     end
  94. end
  95. end)
  96.  
  97. TextLabel.Parent = Frame
  98. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  99. TextLabel.Draggable = true
  100. TextLabel.Size = UDim2.new(0, 608, 0, 50)
  101. TextLabel.Font = Enum.Font.Cartoon
  102. TextLabel.FontSize = Enum.FontSize.Size24
  103. TextLabel.Text = "SphynxGamer's Easy Remote Spy GUI"
  104. TextLabel.TextSize = 19
Add Comment
Please, Sign In to add comment