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 local MAX_PICK_RADIUS = 75 local aimActive = false local aimPartMode = "HEAD" local posLocked = false local targetLocked = false local lockedTarget = nil local function getGuiContainer() local gui pcall(function() if gethui then gui = gethui() end end) if not gui then pcall(function() gui = CoreGui end) end if not gui then gui = LocalPlayer:WaitForChild("PlayerGui") end return gui end local container = getGuiContainer() local old = container:FindFirstChild("SimpleAimBox") if old then old:Destroy() end local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "SimpleAimBox" ScreenGui.ResetOnSpawn = false ScreenGui.IgnoreGuiInset = true ScreenGui.DisplayOrder = 999999 ScreenGui.Parent = container local Box = Instance.new("Frame") Box.Name = "Box" Box.Size = UDim2.new(0, 226, 0, 82) Box.Position = UDim2.new(0.5, -113, 0.75, 0) Box.BackgroundColor3 = Color3.fromRGB(15, 15, 18) Box.BorderColor3 = Color3.fromRGB(255, 255, 255) Box.BorderSizePixel = 1 Box.Active = true Box.ZIndex = 10 Box.Parent = ScreenGui local CreditLabel = Instance.new("TextLabel") CreditLabel.Name = "CreditLabel" CreditLabel.Size = UDim2.new(1, -10, 0, 14) CreditLabel.Position = UDim2.new(0, 5, 0, 2) CreditLabel.BackgroundTransparency = 1 CreditLabel.TextColor3 = Color3.fromRGB(170, 175, 190) CreditLabel.Text = "by Altan_spot" CreditLabel.Font = Enum.Font.SourceSansBold CreditLabel.TextSize = 11 CreditLabel.TextXAlignment = Enum.TextXAlignment.Left CreditLabel.ZIndex = 12 CreditLabel.Parent = Box local AimBtn = Instance.new("TextButton") AimBtn.Name = "AimBtn" AimBtn.Size = UDim2.new(0, 102, 0, 58) AimBtn.Position = UDim2.new(0, 5, 0, 19) AimBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 48) AimBtn.TextColor3 = Color3.fromRGB(255, 255, 255) AimBtn.Text = "AIM" AimBtn.Font = Enum.Font.SourceSansBold AimBtn.TextSize = 13 AimBtn.TextWrapped = true AimBtn.ZIndex = 12 AimBtn.Parent = Box local HeadBtn = Instance.new("TextButton") HeadBtn.Name = "HeadBtn" HeadBtn.Size = UDim2.new(0, 52, 0, 27) HeadBtn.Position = UDim2.new(0, 112, 0, 19) HeadBtn.BackgroundColor3 = Color3.fromRGB(45, 155, 100) HeadBtn.TextColor3 = Color3.fromRGB(255, 255, 255) HeadBtn.Text = "HEAD" HeadBtn.Font = Enum.Font.SourceSansBold HeadBtn.TextSize = 10 HeadBtn.ZIndex = 12 HeadBtn.Parent = Box local TorsoBtn = Instance.new("TextButton") TorsoBtn.Name = "TorsoBtn" TorsoBtn.Size = UDim2.new(0, 52, 0, 27) TorsoBtn.Position = UDim2.new(0, 112, 0, 50) TorsoBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 56) TorsoBtn.TextColor3 = Color3.fromRGB(255, 255, 255) TorsoBtn.Text = "TORSO" TorsoBtn.Font = Enum.Font.SourceSansBold TorsoBtn.TextSize = 10 TorsoBtn.ZIndex = 12 TorsoBtn.Parent = Box local BlueBtn = Instance.new("TextButton") BlueBtn.Name = "BlueBtn" BlueBtn.Size = UDim2.new(0, 52, 0, 27) BlueBtn.Position = UDim2.new(1, -57, 0, 19) BlueBtn.BackgroundColor3 = Color3.fromRGB(35, 130, 240) BlueBtn.TextColor3 = Color3.fromRGB(255, 255, 255) BlueBtn.Text = "YER" BlueBtn.Font = Enum.Font.SourceSansBold BlueBtn.TextSize = 10 BlueBtn.ZIndex = 12 BlueBtn.Parent = Box local RedBtn = Instance.new("TextButton") RedBtn.Name = "RedBtn" RedBtn.Size = UDim2.new(0, 52, 0, 27) RedBtn.Position = UDim2.new(1, -57, 0, 50) RedBtn.BackgroundColor3 = Color3.fromRGB(220, 50, 60) RedBtn.TextColor3 = Color3.fromRGB(255, 255, 255) RedBtn.Text = "HEDEF" RedBtn.Font = Enum.Font.SourceSansBold RedBtn.TextSize = 10 RedBtn.ZIndex = 12 RedBtn.Parent = Box local function getAimPart(char) if not char then return nil end if aimPartMode == "HEAD" then return char:FindFirstChild("Head") or char:FindFirstChild("HumanoidRootPart") else return char:FindFirstChild("UpperTorso") or char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") end end local function updateUI() BlueBtn.BackgroundColor3 = posLocked and Color3.fromRGB(15, 70, 160) or Color3.fromRGB(35, 130, 240) RedBtn.BackgroundColor3 = targetLocked and Color3.fromRGB(140, 20, 30) or Color3.fromRGB(220, 50, 60) if aimPartMode == "HEAD" then HeadBtn.BackgroundColor3 = Color3.fromRGB(45, 155, 100) TorsoBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 56) else HeadBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 56) TorsoBtn.BackgroundColor3 = Color3.fromRGB(45, 155, 100) end if aimActive then AimBtn.BackgroundColor3 = Color3.fromRGB(35, 150, 80) AimBtn.Text = lockedTarget and ("AIM\n" .. lockedTarget.Name) or "AIM" else AimBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 48) AimBtn.Text = lockedTarget and ("AIM\n" .. lockedTarget.Name) or "AIM" end end local draggingBox = false local boxDragStart, boxStartPos Box.InputBegan:Connect(function(input) if posLocked then return end if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then draggingBox = true boxDragStart = Vector2.new(input.Position.X, input.Position.Y) boxStartPos = Box.Position end end) UserInputService.InputChanged:Connect(function(input) if draggingBox and not posLocked then if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then local now = Vector2.new(input.Position.X, input.Position.Y) local delta = now - boxDragStart Box.Position = UDim2.new( boxStartPos.X.Scale, boxStartPos.X.Offset + delta.X, boxStartPos.Y.Scale, boxStartPos.Y.Offset + delta.Y ) end end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then draggingBox = false end end) local function getBestPlayerAtScreenPos(screenPos) Camera = workspace.CurrentCamera if not Camera then return nil end local bestPlayer = nil local bestDistance = MAX_PICK_RADIUS for _, plr in ipairs(Players:GetPlayers()) do if plr ~= LocalPlayer then local char = plr.Character local hum = char and char:FindFirstChildOfClass("Humanoid") if char and hum and hum.Health > 0 then local candidateParts = {} local head = char:FindFirstChild("Head") local root = char:FindFirstChild("HumanoidRootPart") if head and head:IsA("BasePart") then table.insert(candidateParts, head) end if root and root:IsA("BasePart") then table.insert(candidateParts, root) end for _, obj in ipairs(char:GetChildren()) do if obj:IsA("BasePart") and obj ~= head and obj ~= root then table.insert(candidateParts, obj) end end for _, part in ipairs(candidateParts) do local vpPos, onScreen = Camera:WorldToViewportPoint(part.Position) if onScreen and vpPos.Z > 0 then local pt2D = Vector2.new(vpPos.X, vpPos.Y) local dist = (pt2D - screenPos).Magnitude if dist <= bestDistance then bestDistance = dist bestPlayer = plr end end end end end end return bestPlayer end AimBtn.MouseButton1Click:Connect(function() aimActive = not aimActive updateUI() end) HeadBtn.MouseButton1Click:Connect(function() aimPartMode = "HEAD" updateUI() end) TorsoBtn.MouseButton1Click:Connect(function() aimPartMode = "TORSO" updateUI() end) BlueBtn.MouseButton1Click:Connect(function() posLocked = not posLocked if posLocked then draggingBox = false end updateUI() end) RedBtn.MouseButton1Click:Connect(function() targetLocked = not targetLocked updateUI() end) local tapStartPos = nil local tapMoved = false UserInputService.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then tapStartPos = Vector2.new(input.Position.X, input.Position.Y) tapMoved = false end end) UserInputService.InputChanged:Connect(function(input) if tapStartPos and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local now = Vector2.new(input.Position.X, input.Position.Y) if (now - tapStartPos).Magnitude > 14 then tapMoved = true end end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then if tapStartPos and not tapMoved and not targetLocked then local picked = getBestPlayerAtScreenPos(tapStartPos) if picked then lockedTarget = picked updateUI() end end tapStartPos = nil tapMoved = false end end) RunService.RenderStepped:Connect(function() if not aimActive or not lockedTarget then return end Camera = workspace.CurrentCamera if not Camera then return end local char = lockedTarget.Character local part = getAimPart(char) local hum = char and char:FindFirstChildOfClass("Humanoid") if part and hum and hum.Health > 0 then Camera.CFrame = CFrame.lookAt(Camera.CFrame.Position, part.Position) elseif not targetLocked then lockedTarget = nil updateUI() end end) updateUI()