-- Coloca este LocalScript en StarterPlayer > StarterPlayerScripts -- O ejecútalo con un executor si es para un juego específico. local Players = game:GetService("Players") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer local Camera = workspace.CurrentCamera local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "AimbotGUI" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") local Frame = Instance.new("Frame") Frame.Size = UDim2.new(0, 130, 0, 45) Frame.Position = UDim2.new(0, 15, 1, -55) -- Posicionado abajo del chat (izquierda inferior) Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) Frame.BorderSizePixel = 0 Frame.Parent = ScreenGui local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 12) UICorner.Parent = Frame local Stroke = Instance.new("UIStroke") Stroke.Color = Color3.fromRGB(100, 100, 100) Stroke.Thickness = 2 Stroke.Transparency = 0.7 Stroke.Parent = Frame local Button = Instance.new("TextButton") Button.Size = UDim2.new(1, -10, 1, -10) Button.Position = UDim2.new(0, 5, 0, 5) Button.BackgroundColor3 = Color3.fromRGB(50, 50, 50) Button.BorderSizePixel = 0 Button.Text = "Aimbot: OFF" Button.TextColor3 = Color3.fromRGB(255, 255, 255) Button.TextScaled = true Button.Font = Enum.Font.GothamBold Button.Parent = Frame local ButtonCorner = Instance.new("UICorner") ButtonCorner.CornerRadius = UDim.new(0, 8) ButtonCorner.Parent = Button local AimbotEnabled = false local connection = nil local MAX_DIST = 1000 -- Distancia máxima para considerar "cercano" local function getClosestPlayer() local char = LocalPlayer.Character if not char or not char:FindFirstChild("Head") then return nil end local headPos = char.Head.Position local closest, minDist = nil, MAX_DIST for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character then local hum = player.Character:FindFirstChildOfClass("Humanoid") if hum and hum.Health > 0.1 then local tHead = player.Character:FindFirstChild("Head") if tHead then local dist = (headPos - tHead.Position).Magnitude if dist < minDist then minDist = dist closest = player end end end end end return closest end local function aimbotLoop() local targetPlayer = getClosestPlayer() if targetPlayer and targetPlayer.Character then local targetHead = targetPlayer.Character.Head if targetHead then local currentCF = Camera.CFrame local targetCF = CFrame.lookAt(currentCF.Position, targetHead.Position) Camera.CFrame = currentCF:Lerp(targetCF, 0.15) -- Suavizado para que no sea tan brusco end end end Button.MouseButton1Click:Connect(function() AimbotEnabled = not AimbotEnabled if AimbotEnabled then Button.Text = "Aimbot: ON" Button.BackgroundColor3 = Color3.fromRGB(0, 170, 0) Stroke.Color = Color3.fromRGB(0, 255, 0) Stroke.Transparency = 0 if connection then connection:Disconnect() end connection = RunService.Heartbeat:Connect(aimbotLoop) else Button.Text = "Aimbot: OFF" Button.BackgroundColor3 = Color3.fromRGB(50, 50, 50) Stroke.Color = Color3.fromRGB(100, 100, 100) Stroke.Transparency = 0.7 if connection then connection:Disconnect() connection = nil end end end)