-- Services local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Camera = game:GetService("Workspace").CurrentCamera local LocalPlayer = Players.LocalPlayer local UIS = game:GetService("UserInputService") -- Settings local ESP_ENABLED = false local AIM_ASSIST_ENABLED = false local AIM_ASSIST_STRENGTH = 0.2 -- Adjust for smoothness local AIM_KEY = Enum.UserInputType.MouseButton2 -- Right-click to activate Aim Assist local SPEED_BOOST_ENABLED = false local SPEED_MULTIPLIER = 2 -- Speed boost multiplier -- GUI Creation local ScreenGui = Instance.new("ScreenGui") ScreenGui.Parent = game:GetService("CoreGui") local MainFrame = Instance.new("Frame") MainFrame.Size = UDim2.new(0, 220, 0, 220) MainFrame.Position = UDim2.new(0.02, 0, 0.3, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.Parent = ScreenGui local UIStroke = Instance.new("UIStroke", MainFrame) UIStroke.Thickness = 2 UIStroke.Color = Color3.fromRGB(255, 255, 255) local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, 0, 0, 35) Title.Text = "🔍 ESP, Aim Assist & Speed Boost" Title.BackgroundColor3 = Color3.fromRGB(50, 50, 50) Title.TextColor3 = Color3.new(1, 1, 1) Title.Font = Enum.Font.SourceSansBold Title.TextSize = 18 Title.Parent = MainFrame local ESPButton = Instance.new("TextButton") ESPButton.Size = UDim2.new(0.8, 0, 0, 40) ESPButton.Position = UDim2.new(0.1, 0, 0.25, 0) ESPButton.Text = "ESP: OFF" ESPButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50) ESPButton.TextColor3 = Color3.new(1, 1, 1) ESPButton.Font = Enum.Font.SourceSansBold ESPButton.TextSize = 16 ESPButton.Parent = MainFrame local AimButton = Instance.new("TextButton") AimButton.Size = UDim2.new(0.8, 0, 0, 40) AimButton.Position = UDim2.new(0.1, 0, 0.5, 0) AimButton.Text = "Aim Assist: OFF" AimButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50) AimButton.TextColor3 = Color3.new(1, 1, 1) AimButton.Font = Enum.Font.SourceSansBold AimButton.TextSize = 16 AimButton.Parent = MainFrame local SpeedButton = Instance.new("TextButton") SpeedButton.Size = UDim2.new(0.8, 0, 0, 40) SpeedButton.Position = UDim2.new(0.1, 0, 0.75, 0) SpeedButton.Text = "Speed Boost: OFF" SpeedButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50) SpeedButton.TextColor3 = Color3.new(1, 1, 1) SpeedButton.Font = Enum.Font.SourceSansBold SpeedButton.TextSize = 16 SpeedButton.Parent = MainFrame -- ESP Function local function createESP(player) if player == LocalPlayer or player.Team == LocalPlayer.Team then return end local highlight = Instance.new("Highlight") highlight.Parent = player.Character or player.CharacterAdded:Wait() highlight.FillColor = Color3.fromRGB(255, 0, 0) highlight.OutlineColor = Color3.fromRGB(255, 255, 255) highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop end local function toggleESP() ESP_ENABLED = not ESP_ENABLED ESPButton.Text = "ESP: " .. (ESP_ENABLED and "ON" or "OFF") ESPButton.BackgroundColor3 = ESP_ENABLED and Color3.fromRGB(50, 255, 50) or Color3.fromRGB(255, 50, 50) if ESP_ENABLED then for _, player in pairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Team ~= LocalPlayer.Team then createESP(player) end end else for _, player in pairs(Players:GetPlayers()) do if player.Character then for _, obj in pairs(player.Character:GetChildren()) do if obj:IsA("Highlight") then obj:Destroy() end end end end end end ESPButton.MouseButton1Click:Connect(toggleESP) -- Aim Assist Function local function getClosestEnemy() local closestEnemy, shortestDistance = nil, math.huge for _, player in pairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Team ~= LocalPlayer.Team and player.Character and player.Character:FindFirstChild("Head") then local headPosition = player.Character.Head.Position local screenPosition, onScreen = Camera:WorldToViewportPoint(headPosition) if onScreen then local distance = (Vector2.new(screenPosition.X, screenPosition.Y) - Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)).Magnitude if distance < shortestDistance then shortestDistance = distance closestEnemy = player end end end end return closestEnemy end local aimActive = false local function aimAssist() if AIM_ASSIST_ENABLED and aimActive then local enemy = getClosestEnemy() if enemy and enemy.Character and enemy.Character:FindFirstChild("Head") then local enemyPosition = enemy.Character.Head.Position local cameraDirection = (enemyPosition - Camera.CFrame.Position).Unit Camera.CFrame = Camera.CFrame:Lerp(CFrame.lookAt(Camera.CFrame.Position, Camera.CFrame.Position + cameraDirection), AIM_ASSIST_STRENGTH) end end end AimButton.MouseButton1Click:Connect(function() AIM_ASSIST_ENABLED = not AIM_ASSIST_ENABLED AimButton.Text = "Aim Assist: " .. (AIM_ASSIST_ENABLED and "ON" or "OFF") AimButton.BackgroundColor3 = AIM_ASSIST_ENABLED and Color3.fromRGB(50, 255, 50) or Color3.fromRGB(255, 50, 50) end) UIS.InputBegan:Connect(function(input) if input.UserInputType == AIM_KEY then aimActive = true end end) UIS.InputEnded:Connect(function(input) if input.UserInputType == AIM_KEY then aimActive = false end end) RunService.RenderStepped:Connect(aimAssist) -- Speed Boost Function SpeedButton.MouseButton1Click:Connect(function() SPEED_BOOST_ENABLED = not SPEED_BOOST_ENABLED SpeedButton.Text = "Speed Boost: " .. (SPEED_BOOST_ENABLED and "ON" or "OFF") SpeedButton.BackgroundColor3 = SPEED_BOOST_ENABLED and Color3.fromRGB(50, 255, 50) or Color3.fromRGB(255, 50, 50) LocalPlayer.Character.Humanoid.WalkSpeed = SPEED_BOOST_ENABLED and (16 * SPEED_MULTIPLIER) or 16 end)