-- By Pax -- Projekt: Universal ESP and Aimbot GUI v3 (Stable) -- Pax local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local CoreGui = game:GetService("CoreGui") local LocalPlayer = Players.LocalPlayer local Camera = workspace.CurrentCamera -- Verify Drawing library support local DrawingValid = rawget(_G, "Drawing") ~= nil or pcall(function() return Drawing.new("Square") end) if not DrawingValid then warn("[Janprogramista] Warning: Drawing library not fully supported on this executor. ESP visuals may be limited.") end -- Settings local Settings = { ESPEnabled = true, BoxESP = true, NameESP = true, TeamCheck = false, AimbotEnabled = false, AimbotKey = Enum.UserInputType.MouseButton2, FOV = 250 } -- Cleanup old GUI instances if CoreGui:FindFirstChild("JanprogramistaHubV3") then CoreGui.JanprogramistaHubV3:Destroy() end -- GUI Creation local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "JanprogramistaHubV3" ScreenGui.Parent = CoreGui ScreenGui.ResetOnSpawn = false local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 320, 0, 270) MainFrame.Position = UDim2.new(0.5, -160, 0.5, -135) MainFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18) MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Parent = ScreenGui local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 10) UICorner.Parent = MainFrame -- Topbar / Draggable implementation local TopBar = Instance.new("Frame") TopBar.Size = UDim2.new(1, 0, 0, 42) TopBar.BackgroundColor3 = Color3.fromRGB(28, 28, 28) TopBar.BorderSizePixel = 0 TopBar.Parent = MainFrame local TopCorner = Instance.new("UICorner") TopCorner.CornerRadius = UDim.new(0, 10) TopCorner.Parent = TopBar local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, -45, 1, 0) Title.Position = UDim2.new(0, 15, 0, 0) Title.BackgroundTransparency = 1 Title.Text = "Universal Hub | Janprogramista" Title.TextColor3 = Color3.fromRGB(240, 240, 240) Title.TextSize = 15 Title.Font = Enum.Font.GothamBold Title.TextXAlignment = Enum.TextXAlignment.Left Title.Parent = TopBar -- Close Button (X) local CloseBtn = Instance.new("TextButton") CloseBtn.Size = UDim2.new(0, 32, 0, 32) CloseBtn.Position = UDim2.new(1, -38, 0, 5) CloseBtn.BackgroundColor3 = Color3.fromRGB(200, 45, 45) CloseBtn.TextColor3 = Color3.fromRGB(255, 255, 255) CloseBtn.Text = "X" CloseBtn.TextSize = 14 CloseBtn.Font = Enum.Font.GothamBold CloseBtn.Parent = TopBar local CloseCorner = Instance.new("UICorner") CloseCorner.CornerRadius = UDim.new(0, 6) CloseCorner.Parent = CloseBtn -- Cleanup drawings on close CloseBtn.MouseButton1Click:Connect(function() ScreenGui:Destroy() end) -- Smooth Draggable Logic local dragging, dragInput, dragStart, startPos TopBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = MainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) TopBar.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) -- Toggle Creator Helper local function createToggle(name, yPos, initialState, callback) local btn = Instance.new("TextButton") btn.Size = UDim2.new(0.9, 0, 0, 40) btn.Position = UDim2.new(0.05, 0, 0, yPos) btn.BackgroundColor3 = initialState and Color3.fromRGB(0, 120, 215) or Color3.fromRGB(38, 38, 38) btn.TextColor3 = Color3.fromRGB(240, 240, 240) btn.TextSize = 14 btn.Font = Enum.Font.GothamMedium btn.Text = name .. (initialState and ": ON" or ": OFF") btn.Parent = MainFrame local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 6) corner.Parent = btn local state = initialState btn.MouseButton1Click:Connect(function() state = not state btn.Text = name .. (state and ": ON" or ": OFF") btn.BackgroundColor3 = state and Color3.fromRGB(0, 120, 215) or Color3.fromRGB(38, 38, 38) callback(state) end) end -- UI Controls setup createToggle("ESP", 55, Settings.ESPEnabled, function(state) Settings.ESPEnabled = state end) createToggle("Team Check", 105, Settings.TeamCheck, function(state) Settings.TeamCheck = state end) createToggle("Aimbot", 155, Settings.AimbotEnabled, function(state) Settings.AimbotEnabled = state end) -- Status label local StatusLabel = Instance.new("TextLabel") StatusLabel.Size = UDim2.new(0.9, 0, 0, 30) StatusLabel.Position = UDim2.new(0.05, 0, 1, -35) StatusLabel.BackgroundTransparency = 1 StatusLabel.Text = "Status: Fully Operational | Hold RMB for Aimbot" StatusLabel.TextColor3 = Color3.fromRGB(160, 160, 160) StatusLabel.TextSize = 12 StatusLabel.Font = Enum.Font.Gotham StatusLabel.Parent = MainFrame -- ESP Storage local espDrawings = {} local function removeESP(player) if espDrawings[player] then if espDrawings[player].Box then pcall(function() espDrawings[player].Box:Remove() end) end if espDrawings[player].Text then pcall(function() espDrawings[player].Text:Remove() end) end espDrawings[player] = nil end end Players.PlayerRemoving:Connect(removeESP) -- Main Render Loop RunService.RenderStepped:Connect(function() -- ESP Processing for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then if not espDrawings[player] and DrawingValid then local successBox, box = pcall(function() return Drawing.new("Square") end) local successText, txt = pcall(function() return Drawing.new("Text") end) if successBox and successText then box.Visible = false box.Color = Color3.fromRGB(0, 255, 120) box.Thickness = 1.5 box.Filled = false txt.Visible = false txt.Color = Color3.fromRGB(255, 255, 255) txt.Size = 13 txt.Center = true txt.Outline = true espDrawings[player] = {Box = box, Text = txt} end end local cache = espDrawings[player] local char = player.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") local humanoid = char and char:FindFirstChildOfClass("Humanoid") local show = false if cache and Settings.ESPEnabled and char and hrp and humanoid and humanoid.Health > 0 then if not Settings.TeamCheck or player.Team ~= LocalPlayer.Team then local pos, onScreen = Camera:WorldToViewportPoint(hrp.Position) if onScreen then show = true local topPos = Camera:WorldToViewportPoint(hrp.Position + Vector3.new(0, 3, 0)) local botPos = Camera:WorldToViewportPoint(hrp.Position - Vector3.new(0, 3, 0)) local height = math.abs(topPos.Y - botPos.Y) local boxSize = Vector2.new(height * 0.5, height) local boxPos = Vector2.new(pos.X - boxSize.X / 2, pos.Y - boxSize.Y / 2) cache.Box.Size = boxSize cache.Box.Position = boxPos cache.Box.Visible = Settings.BoxESP local dist = math.floor((Camera.CFrame.Position - hrp.Position).Magnitude) cache.Text.Text = player.Name .. " [" .. dist .. "m]" cache.Text.Position = Vector2.new(pos.X, boxPos.Y - 18) cache.Text.Visible = Settings.NameESP end end end if cache and not show then if cache.Box then cache.Box.Visible = false end if cache.Text then cache.Text.Visible = false end end end end -- Aimbot Processing if Settings.AimbotEnabled and UserInputService:IsMouseButtonPressed(Settings.AimbotKey) then local closestTarget = nil local shortestDist = Settings.FOV local mousePos = UserInputService:GetMouseLocation() for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("Head") then if not Settings.TeamCheck or player.Team ~= LocalPlayer.Team then local humanoid = player.Character:FindFirstChildOfClass("Humanoid") if humanoid and humanoid.Health > 0 then local head = player.Character.Head local screenPos, onScreen = Camera:WorldToViewportPoint(head.Position) if onScreen then local dist = (Vector2.new(screenPos.X, screenPos.Y) - mousePos).Magnitude if dist < shortestDist then shortestDist = dist closestTarget = head end end end end end end if closestTarget then Camera.CFrame = CFrame.new(Camera.CFrame.Position, closestTarget.Position) end end end) -- Cleanup on Gui destroy ScreenGui.AncestryChanged:Connect(function(_, parent) if not parent then for player, _ in pairs(espDrawings) do removeESP(player) end end end)