Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players:WaitForChild("realprohacx")
- local StarterGui = game:GetService("StarterGui")
- local UserInput = game:GetService("UserInputService")
- local Remotes
- task.wait() -- Wait until everything loads
- local function View(Button)
- if Button == "View" then
- print("RemoteSpy: GUI Created!")
- -- GUI Functions --
- local function Roundify(Int, Radius)
- local Return = Instance.new("UICorner", Int)
- Return.Name = "_Round"
- Return.CornerRadius = UDim.new(0, Radius)
- end
- -- GUI --
- local Gui = Instance.new("ScreenGui", Player.PlayerGui)
- Gui.Name = "RemoteSpyViewer"
- local Frame = Instance.new("Frame", Gui)
- Frame.Name = "Menu"
- Frame.BackgroundColor3 = Color3.fromRGB(50,50,50)
- Frame.Position = UDim2.new(0.352, 0,0.327, 0)
- Frame.Size = UDim2.new(0.295, 0,0.343, 0)
- Roundify(Frame, 6)
- local Bar = Instance.new("Frame", Frame)
- Bar.Name = "_Bar"
- Bar.BackgroundColor3 = Color3.fromRGB(35,35,35)
- Bar.Position = UDim2.new(0, 0,0, 0)
- Bar.Size = UDim2.new(1, 0,0.147, 0)
- Roundify(Bar, 6)
- local Text = Instance.new("TextLabel", Bar)
- Text.Name = "_Text"
- Text.BackgroundTransparency = 1
- Text.Position = UDim2.new(0.045, 0,0.227, 0)
- Text.Size = UDim2.new(0.909, 0,0.545, 0)
- Text.Text = "RemoteSpy Viewer"
- Text.TextColor3 = Color3.new(1,1,1)
- Text.TextScaled = true
- Text.Font = Enum.Font.GothamBold
- Text.TextXAlignment = Enum.TextXAlignment.Left
- local ScrollingFrame = Instance.new("ScrollingFrame", Frame)
- ScrollingFrame.Name = "_Scroll"
- ScrollingFrame.BackgroundTransparency = 1
- ScrollingFrame.BorderSizePixel = 0
- ScrollingFrame.Position = UDim2.new(0.023, 0,0.187, 0)
- ScrollingFrame.Size = UDim2.new(0.955, 0,0.773, 0)
- ScrollingFrame.ScrollBarImageTransparency = 1
- ScrollingFrame.ScrollingEnabled = true
- ScrollingFrame.CanvasSize = UDim2.new(0,0,100000,0)
- local UIListLayout = Instance.new("UIListLayout", ScrollingFrame)
- UIListLayout.Name = "_List"
- UIListLayout.Padding = UDim.new(0, 5)
- UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- --
- for _, Remote in pairs(Remotes) do
- if Remote:IsA("RemoteEvent") then
- local Notif = Instance.new("TextButton", ScrollingFrame)
- Notif.Name = "RemoteEvent"
- Notif.BackgroundColor3 = Color3.fromRGB(35,35,35)
- Notif.Size = UDim2.new(0, 177,0, 30)
- Notif.Text = 'Found "'..Remote.Name..'", Parented to '..Remote.Parent.Name
- Notif.TextColor3 = Color3.new(1,1,1)
- Notif.TextSize = 9
- Notif.TextWrapped = true
- Notif.Font = Enum.Font.GothamBold
- Roundify(Notif, 6)
- spawn(function()
- Notif.MouseButton1Click:Connect(function()
- Remote:FireServer()
- print('RemoteSpy: RemoteEvent "'..Remote.Name..'" was fired successfuly')
- end)
- end)
- end
- end
- --
- local function dragify(Frame)
- dragToggle = nil
- dragSpeed = 0.15
- dragInput = nil
- dragStart = nil
- dragPos = nil
- function updateInput(input)
- Delta = input.Position - dragStart
- Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.025), {Position = Position}):Play()
- end
- Frame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UserInput:GetFocusedTextBox() == nil then
- dragToggle = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragToggle = false
- end
- end)
- end
- end)
- Frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragToggle then
- updateInput(input)
- end
- end)
- end
- dragify(Frame)
- end
- end
- local ViewCallback = Instance.new("BindableFunction")
- ViewCallback.OnInvoke = View
- local function ScanForRemotes()
- local Targets = {workspace, game.ReplicatedStorage, Player.PlayerGui, Player.Character, Player.Backpack}
- Remotes = {}
- for _, ScanFolder in pairs(Targets) do
- if ScanFolder then
- for _, Child in pairs(ScanFolder:GetDescendants()) do
- if Child:IsA("RemoteEvent") then
- table.insert(Remotes, Child)
- end
- end
- end
- end
- StarterGui:SetCore("SendNotification", {
- Title = "RemoteSpy";
- Text = "Checking for remote events...";
- Icon = "http://www.roblox.com/asset/?id=4460063940";
- Duration = 4;
- })
- task.wait(5)
- StarterGui:SetCore("SendNotification", {
- Title = "RemoteSpy";
- Text = "Found "..#Remotes.." remote events, you can view them here!";
- Icon = "http://www.roblox.com/asset/?id=4460063940";
- Duration = 10;
- Button1 = "View";
- Callback = ViewCallback
- })
- end
- local function Invoked(Button)
- if Button == "Scan" then
- ScanForRemotes()
- end
- end
- local NotificationCallback = Instance.new("BindableFunction")
- NotificationCallback.OnInvoke = Invoked
- StarterGui:SetCore("SendNotification", {
- Title = "RemoteSpy Loader";
- Text = "Successfuly loaded!";
- Icon = "http://www.roblox.com/asset/?id=4460063940";
- Duration = 15;
- Button1 = "Scan";
- Button2 = "Close";
- Callback = NotificationCallback
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement