--[[ Strongest Target + Client Bring (Front) Press P = Toggle Auto Strongest Target Press B = Toggle Client Bring (brings enemies right in front of you) ]] local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local Players = game:GetService("Players") local player = Players.LocalPlayer local enemiesFolder = workspace:WaitForChild("Enemies") local AUTO_KEY = Enum.KeyCode.P local BRING_KEY = Enum.KeyCode.B local OFFSET = Vector3.new(0, 0, 0) local BRING_DISTANCE = 0 -- How far in front (lower = closer) local BRING_HEIGHT = 0 -- Height offset local BRING_SPACING = 0 -- Space between stacked enemies local scanActive = false local bringActive = false local currentTarget = nil local enemyButtons = {} -- ==================== GUI ==================== local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "StrongestTargetGui" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = player:WaitForChild("PlayerGui") local MainFrame = Instance.new("Frame") MainFrame.Size = UDim2.new(0, 360, 0, 520) MainFrame.Position = UDim2.new(0, 20, 0, 20) MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20) MainFrame.BorderSizePixel = 0 MainFrame.Parent = ScreenGui Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 12) local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, 0, 0, 35) Title.BackgroundTransparency = 1 Title.Text = "STRONGEST TARGET + CLIENT BRING" Title.TextColor3 = Color3.new(1, 1, 1) Title.TextScaled = true Title.Font = Enum.Font.GothamBold Title.Parent = MainFrame local Status = Instance.new("TextLabel") Status.Size = UDim2.new(1, -20, 0, 25) Status.Position = UDim2.new(0, 10, 0, 40) Status.BackgroundTransparency = 1 Status.TextScaled = true Status.Font = Enum.Font.GothamSemibold Status.Parent = MainFrame local Scroll = Instance.new("ScrollingFrame") Scroll.Size = UDim2.new(1, -20, 0, 280) Scroll.Position = UDim2.new(0, 10, 0, 75) Scroll.BackgroundColor3 = Color3.fromRGB(30, 30, 30) Scroll.ScrollBarThickness = 6 Scroll.Parent = MainFrame Instance.new("UICorner", Scroll).CornerRadius = UDim.new(0, 8) local UIListLayout = Instance.new("UIListLayout") UIListLayout.SortOrder = Enum.SortOrder.Name UIListLayout.Padding = UDim.new(0, 4) UIListLayout.Parent = Scroll local TargetInfo = Instance.new("TextLabel") TargetInfo.Size = UDim2.new(1, -20, 0, 30) TargetInfo.Position = UDim2.new(0, 10, 1, -110) TargetInfo.BackgroundTransparency = 1 TargetInfo.Text = "No Target" TargetInfo.TextColor3 = Color3.fromRGB(170, 170, 170) TargetInfo.TextScaled = true TargetInfo.Font = Enum.Font.Gotham TargetInfo.Parent = MainFrame local ToggleButton = Instance.new("TextButton") ToggleButton.Size = UDim2.new(0.48, 0, 0, 35) ToggleButton.Position = UDim2.new(0, 10, 1, -50) ToggleButton.BackgroundColor3 = Color3.fromRGB(200, 40, 40) ToggleButton.Text = "AUTO OFF" ToggleButton.TextColor3 = Color3.new(1, 1, 1) ToggleButton.TextScaled = true ToggleButton.Font = Enum.Font.GothamBold ToggleButton.Parent = MainFrame Instance.new("UICorner", ToggleButton).CornerRadius = UDim.new(0, 8) local BringButton = Instance.new("TextButton") BringButton.Size = UDim2.new(0.48, 0, 0, 35) BringButton.Position = UDim2.new(0.52, 0, 1, -50) BringButton.BackgroundColor3 = Color3.fromRGB(200, 40, 40) BringButton.Text = "BRING OFF" BringButton.TextColor3 = Color3.new(1, 1, 1) BringButton.TextScaled = true BringButton.Font = Enum.Font.GothamBold BringButton.Parent = MainFrame Instance.new("UICorner", BringButton).CornerRadius = UDim.new(0, 8) -- Draggable local dragging, dragStart, startPos MainFrame.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 end end) UserInputService.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) 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) MainFrame.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) -- ==================== Functions ==================== local function updateGUI() Status.Text = scanActive and "AUTO MODE: ACTIVE" or "AUTO MODE: OFF" Status.TextColor3 = scanActive and Color3.fromRGB(80, 255, 80) or Color3.fromRGB(255, 80, 80) ToggleButton.BackgroundColor3 = scanActive and Color3.fromRGB(40, 200, 40) or Color3.fromRGB(200, 40, 40) ToggleButton.Text = scanActive and "AUTO ON" or "AUTO OFF" BringButton.BackgroundColor3 = bringActive and Color3.fromRGB(40, 200, 40) or Color3.fromRGB(200, 40, 40) BringButton.Text = bringActive and "BRING ON" or "BRING OFF" TargetInfo.Text = currentTarget and currentTarget.Name or "No Target" end local function updateButtonText(btn, enemy) local hum = enemy:FindFirstChildOfClass("Humanoid") if hum then local percent = math.clamp(math.floor((hum.Health / hum.MaxHealth) * 100), 0, 100) btn.Text = string.format("%s\n[%d%%]", enemy.Name, percent) btn.TextColor3 = percent > 75 and Color3.fromRGB(80, 255, 80) or (percent > 40 and Color3.fromRGB(255, 220, 60) or Color3.fromRGB(255, 80, 80)) else btn.Text = enemy.Name btn.TextColor3 = Color3.new(1, 1, 1) end end local function removeEnemyButton(enemy) local data = enemyButtons[enemy] if data then if data.Connections then for _, c in ipairs(data.Connections) do c:Disconnect() end end if data.Button then data.Button:Destroy() end enemyButtons[enemy] = nil Scroll.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y + 20) end end local function createEnemyButton(enemy) if enemyButtons[enemy] then return end local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, 0, 0, 42) btn.BackgroundColor3 = Color3.fromRGB(45, 45, 45) btn.TextColor3 = Color3.new(1, 1, 1) btn.TextScaled = true btn.Font = Enum.Font.GothamMedium btn.TextWrapped = true btn.Parent = Scroll Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6) updateButtonText(btn, enemy) local connections = {} local hum = enemy:FindFirstChildOfClass("Humanoid") if hum then table.insert(connections, hum:GetPropertyChangedSignal("Health"):Connect(function() updateButtonText(btn, enemy) end)) table.insert(connections, hum.Died:Connect(function() removeEnemyButton(enemy) end)) end table.insert(connections, btn.MouseButton1Click:Connect(function() currentTarget = enemy updateGUI() end)) enemyButtons[enemy] = {Button = btn, Connections = connections} Scroll.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y + 20) end local function findStrongestEnemy() local character = player.Character local myRoot = character and character:FindFirstChild("HumanoidRootPart") if not myRoot then return nil end local myPos = myRoot.Position local best, highest, closest = nil, -1, math.huge for _, enemy in ipairs(enemiesFolder:GetChildren()) do local root = enemy:FindFirstChild("HumanoidRootPart") local hum = enemy:FindFirstChildOfClass("Humanoid") if root and hum and hum.Health > 0 then local dist = (root.Position - myPos).Magnitude local hp = hum.MaxHealth or 100 if hp > highest or (hp == highest and dist < closest) then highest, closest, best = hp, dist, enemy end end end return best end local function toggleAuto() scanActive = not scanActive if scanActive then currentTarget = findStrongestEnemy() end updateGUI() end local function toggleBring() bringActive = not bringActive updateGUI() end -- ==================== Client Bring Logic (Right in Front) ==================== local function updateClientBring() if not bringActive then return end local character = player.Character local myRoot = character and character:FindFirstChild("HumanoidRootPart") if not myRoot then return end local forward = myRoot.CFrame.LookVector local basePos = myRoot.Position + forward * BRING_DISTANCE local index = 0 for _, enemy in ipairs(enemiesFolder:GetChildren()) do local root = enemy:FindFirstChild("HumanoidRootPart") local hum = enemy:FindFirstChildOfClass("Humanoid") if root and hum and hum.Health > 0 then index += 0 -- Stack them neatly in front, slightly spread vertically local offset = Vector3.new(0, (index - 0) * BRING_SPACING, 0) root.CFrame = CFrame.new(basePos + offset) * CFrame.Angles(0, math.rad(0), 0) -- face player root.AssemblyLinearVelocity = Vector3.new(0, 0, 0) root.AssemblyAngularVelocity = Vector3.new(0, 0, 0) end end end -- ==================== Connections ==================== UserInputService.InputBegan:Connect(function(input, processed) if processed then return end if input.KeyCode == AUTO_KEY then toggleAuto() elseif input.KeyCode == BRING_KEY then toggleBring() end end) ToggleButton.MouseButton1Click:Connect(toggleAuto) BringButton.MouseButton1Click:Connect(toggleBring) enemiesFolder.ChildAdded:Connect(function(child) task.wait(0.1) local hum = child:FindFirstChildOfClass("Humanoid") if hum and hum.Health > 0 then createEnemyButton(child) end end) enemiesFolder.ChildRemoved:Connect(function(child) if child == currentTarget then currentTarget = nil end removeEnemyButton(child) end) -- Main Loop RunService.Heartbeat:Connect(function() local character = player.Character local myRoot = character and character:FindFirstChild("HumanoidRootPart") if not myRoot then return end -- Auto Strongest Target if scanActive then local valid = currentTarget and currentTarget:IsDescendantOf(enemiesFolder) local hum = valid and currentTarget:FindFirstChildOfClass("Humanoid") if not (valid and hum and hum.Health > 0) then currentTarget = findStrongestEnemy() updateGUI() end if currentTarget then local targetRoot = currentTarget:FindFirstChild("HumanoidRootPart") if targetRoot then myRoot.CFrame = targetRoot.CFrame + OFFSET myRoot.AssemblyLinearVelocity = Vector3.new(0, 0, 0) myRoot.AssemblyAngularVelocity = Vector3.new(0, 0, 0) end end end -- Client Bring updateClientBring() end) -- Initial Load for _, enemy in ipairs(enemiesFolder:GetChildren()) do local hum = enemy:FindFirstChildOfClass("Humanoid") if hum and hum.Health > 0 then createEnemyButton(enemy) end end updateGUI() print("✅ Strongest Target + Client Bring (Front) Loaded!")