Advertisement
ProScripter29

RemoteSpy 1.0

Nov 18th, 2022 (edited)
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.41 KB | Gaming | 0 0
  1. local Player = game.Players:WaitForChild("realprohacx")
  2.  
  3. local StarterGui = game:GetService("StarterGui")
  4. local UserInput = game:GetService("UserInputService")
  5.  
  6. local Remotes
  7.  
  8. task.wait() -- Wait until everything loads
  9.  
  10. local function View(Button)
  11. if Button == "View" then
  12. print("RemoteSpy: GUI Created!")
  13. -- GUI Functions --
  14. local function Roundify(Int, Radius)
  15. local Return = Instance.new("UICorner", Int)
  16. Return.Name = "_Round"
  17. Return.CornerRadius = UDim.new(0, Radius)
  18. end
  19. -- GUI --
  20. local Gui = Instance.new("ScreenGui", Player.PlayerGui)
  21. Gui.Name = "RemoteSpyViewer"
  22. local Frame = Instance.new("Frame", Gui)
  23. Frame.Name = "Menu"
  24. Frame.BackgroundColor3 = Color3.fromRGB(50,50,50)
  25. Frame.Position = UDim2.new(0.352, 0,0.327, 0)
  26. Frame.Size = UDim2.new(0.295, 0,0.343, 0)
  27. Roundify(Frame, 6)
  28. local Bar = Instance.new("Frame", Frame)
  29. Bar.Name = "_Bar"
  30. Bar.BackgroundColor3 = Color3.fromRGB(35,35,35)
  31. Bar.Position = UDim2.new(0, 0,0, 0)
  32. Bar.Size = UDim2.new(1, 0,0.147, 0)
  33. Roundify(Bar, 6)
  34. local Text = Instance.new("TextLabel", Bar)
  35. Text.Name = "_Text"
  36. Text.BackgroundTransparency = 1
  37. Text.Position = UDim2.new(0.045, 0,0.227, 0)
  38. Text.Size = UDim2.new(0.909, 0,0.545, 0)
  39. Text.Text = "RemoteSpy Viewer"
  40. Text.TextColor3 = Color3.new(1,1,1)
  41. Text.TextScaled = true
  42. Text.Font = Enum.Font.GothamBold
  43. Text.TextXAlignment = Enum.TextXAlignment.Left
  44. local ScrollingFrame = Instance.new("ScrollingFrame", Frame)
  45. ScrollingFrame.Name = "_Scroll"
  46. ScrollingFrame.BackgroundTransparency = 1
  47. ScrollingFrame.BorderSizePixel = 0
  48. ScrollingFrame.Position = UDim2.new(0.023, 0,0.187, 0)
  49. ScrollingFrame.Size = UDim2.new(0.955, 0,0.773, 0)
  50. ScrollingFrame.ScrollBarImageTransparency = 1
  51. ScrollingFrame.ScrollingEnabled = true
  52. ScrollingFrame.CanvasSize = UDim2.new(0,0,100000,0)
  53. local UIListLayout = Instance.new("UIListLayout", ScrollingFrame)
  54. UIListLayout.Name = "_List"
  55. UIListLayout.Padding = UDim.new(0, 5)
  56. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  57. --
  58. for _, Remote in pairs(Remotes) do
  59. if Remote:IsA("RemoteEvent") then
  60. local Notif = Instance.new("TextButton", ScrollingFrame)
  61. Notif.Name = "RemoteEvent"
  62. Notif.BackgroundColor3 = Color3.fromRGB(35,35,35)
  63. Notif.Size = UDim2.new(0, 177,0, 30)
  64. Notif.Text = 'Found "'..Remote.Name..'", Parented to '..Remote.Parent.Name
  65. Notif.TextColor3 = Color3.new(1,1,1)
  66. Notif.TextSize = 9
  67. Notif.TextWrapped = true
  68. Notif.Font = Enum.Font.GothamBold
  69. Roundify(Notif, 6)
  70. spawn(function()
  71. Notif.MouseButton1Click:Connect(function()
  72. Remote:FireServer()
  73. print('RemoteSpy: RemoteEvent "'..Remote.Name..'" was fired successfuly')
  74. end)
  75. end)
  76. end
  77. end
  78. --
  79. local function dragify(Frame)
  80. dragToggle = nil
  81. dragSpeed = 0.15
  82. dragInput = nil
  83. dragStart = nil
  84. dragPos = nil
  85. function updateInput(input)
  86. Delta = input.Position - dragStart
  87. Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  88. game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.025), {Position = Position}):Play()
  89. end
  90. Frame.InputBegan:Connect(function(input)
  91. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UserInput:GetFocusedTextBox() == nil then
  92. dragToggle = true
  93. dragStart = input.Position
  94. startPos = Frame.Position
  95. input.Changed:Connect(function()
  96. if input.UserInputState == Enum.UserInputState.End then
  97. dragToggle = false
  98. end
  99. end)
  100. end
  101. end)
  102. Frame.InputChanged:Connect(function(input)
  103. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  104. dragInput = input
  105. end
  106. end)
  107. game:GetService("UserInputService").InputChanged:Connect(function(input)
  108. if input == dragInput and dragToggle then
  109. updateInput(input)
  110. end
  111. end)
  112. end
  113. dragify(Frame)
  114. end
  115. end
  116.  
  117. local ViewCallback = Instance.new("BindableFunction")
  118. ViewCallback.OnInvoke = View
  119.  
  120. local function ScanForRemotes()
  121. local Targets = {workspace, game.ReplicatedStorage, Player.PlayerGui, Player.Character, Player.Backpack}
  122. Remotes = {}
  123. for _, ScanFolder in pairs(Targets) do
  124. if ScanFolder then
  125. for _, Child in pairs(ScanFolder:GetDescendants()) do
  126. if Child:IsA("RemoteEvent") then
  127. table.insert(Remotes, Child)
  128. end
  129. end
  130. end
  131. end
  132. StarterGui:SetCore("SendNotification", {
  133. Title = "RemoteSpy";
  134. Text = "Checking for remote events...";
  135. Icon = "http://www.roblox.com/asset/?id=4460063940";
  136. Duration = 4;
  137. })
  138. task.wait(5)
  139. StarterGui:SetCore("SendNotification", {
  140. Title = "RemoteSpy";
  141. Text = "Found "..#Remotes.." remote events, you can view them here!";
  142. Icon = "http://www.roblox.com/asset/?id=4460063940";
  143. Duration = 10;
  144. Button1 = "View";
  145. Callback = ViewCallback
  146. })
  147. end
  148.  
  149. local function Invoked(Button)
  150. if Button == "Scan" then
  151. ScanForRemotes()
  152. end
  153. end
  154.  
  155. local NotificationCallback = Instance.new("BindableFunction")
  156. NotificationCallback.OnInvoke = Invoked
  157.  
  158. StarterGui:SetCore("SendNotification", {
  159. Title = "RemoteSpy Loader";
  160. Text = "Successfuly loaded!";
  161. Icon = "http://www.roblox.com/asset/?id=4460063940";
  162. Duration = 15;
  163. Button1 = "Scan";
  164. Button2 = "Close";
  165. Callback = NotificationCallback
  166. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement