Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local LocalPlayer = Players.LocalPlayer
- -- Destroy existing GUI if re-run
- if game.CoreGui:FindFirstChild("ServerExploitGUI") then
- game.CoreGui:FindFirstChild("ServerExploitGUI"):Destroy()
- end
- -- Create GUI
- local gui = Instance.new("ScreenGui", game.CoreGui)
- gui.Name = "ServerExploitGUI"
- gui.ResetOnSpawn = false
- -- Drag frame
- local dragFrame = Instance.new("Frame", gui)
- dragFrame.Size = UDim2.new(0, 400, 0, 350)
- dragFrame.Position = UDim2.new(0.3, 0, 0.3, 0)
- dragFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 30)
- dragFrame.BorderSizePixel = 0
- dragFrame.Active = true
- dragFrame.Draggable = true
- -- UICorner for futuristic style
- local corner = Instance.new("UICorner", dragFrame)
- corner.CornerRadius = UDim.new(0, 16)
- -- UIStroke for glow
- local stroke = Instance.new("UIStroke", dragFrame)
- stroke.Thickness = 2
- stroke.Color = Color3.fromRGB(0, 255, 255)
- -- Title
- local title = Instance.new("TextLabel", dragFrame)
- title.Size = UDim2.new(1, 0, 0, 40)
- title.BackgroundTransparency = 1
- title.Text = "Server Inspection/Exploitation"
- title.TextSize = 24
- title.Font = Enum.Font.GothamBold
- title.TextColor3 = Color3.fromRGB(0, 255, 255)
- -- Tabs
- local tabHolder = Instance.new("Frame", dragFrame)
- tabHolder.Size = UDim2.new(1, 0, 0, 40)
- tabHolder.Position = UDim2.new(0, 0, 0, 40)
- tabHolder.BackgroundTransparency = 1
- local remoteTab = Instance.new("TextButton", tabHolder)
- remoteTab.Size = UDim2.new(0.5, 0, 1, 0)
- remoteTab.Text = "Remote Events"
- remoteTab.Font = Enum.Font.Gotham
- remoteTab.TextSize = 18
- remoteTab.TextColor3 = Color3.fromRGB(255, 255, 255)
- remoteTab.BackgroundColor3 = Color3.fromRGB(20, 20, 50)
- local itemTab = remoteTab:Clone()
- itemTab.Text = "Items"
- itemTab.Position = UDim2.new(0.5, 0, 0, 0)
- itemTab.Parent = tabHolder
- -- Pages
- local remotePage = Instance.new("Frame", dragFrame)
- remotePage.Size = UDim2.new(1, -20, 1, -100)
- remotePage.Position = UDim2.new(0, 10, 0, 90)
- remotePage.BackgroundTransparency = 1
- local itemPage = remotePage:Clone()
- itemPage.Parent = dragFrame
- itemPage.Visible = false
- -- Scroll areas
- local remoteScroll = Instance.new("ScrollingFrame", remotePage)
- remoteScroll.Size = UDim2.new(1, 0, 1, -50)
- remoteScroll.CanvasSize = UDim2.new(0, 0, 0, 0)
- remoteScroll.BackgroundTransparency = 1
- remoteScroll.ScrollBarThickness = 6
- local itemScroll = remoteScroll:Clone()
- itemScroll.Parent = itemPage
- -- Username input
- local usernameInput = Instance.new("TextBox", itemPage)
- usernameInput.Size = UDim2.new(1, 0, 0, 30)
- usernameInput.Position = UDim2.new(0, 0, 0, 0)
- usernameInput.PlaceholderText = "Username to give items to"
- usernameInput.Text = ""
- usernameInput.Font = Enum.Font.Gotham
- usernameInput.TextSize = 18
- usernameInput.TextColor3 = Color3.fromRGB(255,255,255)
- usernameInput.BackgroundColor3 = Color3.fromRGB(30, 30, 50)
- local usernameCorner = Instance.new("UICorner", usernameInput)
- usernameCorner.CornerRadius = UDim.new(0, 8)
- -- Buttons
- local rescanRemote = Instance.new("TextButton", remotePage)
- rescanRemote.Size = UDim2.new(1, 0, 0, 30)
- rescanRemote.Position = UDim2.new(0, 0, 1, -30)
- rescanRemote.Text = "Rescan RemoteEvents"
- rescanRemote.Font = Enum.Font.GothamBold
- rescanRemote.TextSize = 18
- rescanRemote.TextColor3 = Color3.fromRGB(0,255,255)
- rescanRemote.BackgroundColor3 = Color3.fromRGB(40, 40, 60)
- local rescanItem = rescanRemote:Clone()
- rescanItem.Text = "Scan Items"
- rescanItem.Parent = itemPage
- rescanItem.Position = UDim2.new(0, 0, 1, -30)
- -- Switching tabs
- remoteTab.MouseButton1Click:Connect(function()
- remotePage.Visible = true
- itemPage.Visible = false
- end)
- itemTab.MouseButton1Click:Connect(function()
- remotePage.Visible = false
- itemPage.Visible = true
- end)
- -- Function to create buttons
- local function createButton(parent, name, callback)
- local btn = Instance.new("TextButton")
- btn.Size = UDim2.new(1, -10, 0, 30)
- btn.Position = UDim2.new(0, 5, 0, 0)
- btn.BackgroundColor3 = Color3.fromRGB(30, 30, 60)
- btn.Text = name
- btn.Font = Enum.Font.Gotham
- btn.TextSize = 16
- btn.TextColor3 = Color3.fromRGB(0, 255, 255)
- btn.Parent = parent
- local corner = Instance.new("UICorner", btn)
- corner.CornerRadius = UDim.new(0, 6)
- btn.MouseButton1Click:Connect(callback)
- end
- -- RemoteEvent Scanner
- local function scanRemoteEvents()
- remoteScroll:ClearAllChildren()
- local y = 0
- for _, v in pairs(game:GetDescendants()) do
- if v:IsA("RemoteEvent") then
- createButton(remoteScroll, v:GetFullName(), function()
- pcall(function()
- v:FireServer()
- end)
- end).Position = UDim2.new(0, 5, 0, y)
- y = y + 35
- end
- end
- remoteScroll.CanvasSize = UDim2.new(0, 0, 0, y)
- end
- rescanRemote.MouseButton1Click:Connect(scanRemoteEvents)
- -- Item Scanner
- local function scanItems()
- itemScroll:ClearAllChildren()
- local target = Players:FindFirstChild(usernameInput.Text)
- local y = 0
- for _, obj in pairs(game:GetDescendants()) do
- if obj:IsA("Tool") and not obj:FindFirstAncestorOfClass("Player") then
- createButton(itemScroll, obj.Name, function()
- local clone = obj:Clone()
- if target and target:FindFirstChild("Backpack") then
- local success = pcall(function()
- clone.Parent = target.Backpack
- end)
- if not success then
- if target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
- clone.Parent = workspace
- clone.Handle.CFrame = target.Character.HumanoidRootPart.CFrame + Vector3.new(0,2,0)
- end
- end
- else
- clone.Parent = LocalPlayer.Backpack
- end
- end).Position = UDim2.new(0, 5, 0, y)
- y = y + 35
- end
- end
- itemScroll.CanvasSize = UDim2.new(0, 0, 0, y)
- end
- rescanItem.MouseButton1Click:Connect(scanItems)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement