if rconsoleprint then rconsoleprint("haha im annoying now, rmb (right mouse button) for the aimbot to work, dont be a retard pls - #26") end local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UIS = game:GetService("UserInputService") local GuiService = game:GetService("GuiService") local player = Players.LocalPlayer local camera = workspace.CurrentCamera local toggleHeld = false local target = nil local lockUsed = false local TARGET_PART = "Head" local FOV_RADIUS = 175 local screenGui = Instance.new("ScreenGui") screenGui.Name = "FOVCircle" screenGui.ResetOnSpawn = false screenGui.IgnoreGuiInset = true screenGui.Parent = player:WaitForChild("PlayerGui") local circle = Instance.new("Frame") circle.Name = "FOV" circle.Size = UDim2.fromOffset(FOV_RADIUS * 2, FOV_RADIUS * 2) circle.AnchorPoint = Vector2.new(0.5, 0.5) circle.BackgroundTransparency = 1 circle.BorderSizePixel = 0 circle.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(1, 0) corner.Parent = circle local stroke = Instance.new("UIStroke") stroke.Thickness = 1.5 stroke.Color = Color3.fromRGB(255, 255, 255) stroke.Transparency = 0.15 stroke.Parent = circle local function GetMouseViewportPosition() local mousePos = UIS:GetMouseLocation() local inset = GuiService:GetGuiInset() return mousePos - inset end local function GetTarget() local closest = nil local shortestDist = math.huge local mousePos = GetMouseViewportPosition() for _, v in pairs(Players:GetPlayers()) do if v ~= player and v.Character then local char = v.Character local humanoid = char:FindFirstChildOfClass("Humanoid") local part = char:FindFirstChild(TARGET_PART) if humanoid and humanoid.Health > 0 and part then local pos, onScreen = camera:WorldToViewportPoint(part.Position) if onScreen then local dist = ( Vector2.new(pos.X, pos.Y) - mousePos ).Magnitude if dist < shortestDist and dist <= FOV_RADIUS then shortestDist = dist closest = part end end end end end return closest end UIS.InputBegan:Connect(function(input, gpe) if gpe then return end if input.UserInputType == Enum.UserInputType.MouseButton2 then toggleHeld = true lockUsed = false end end) UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton2 then toggleHeld = false target = nil lockUsed = false end end) RunService.RenderStepped:Connect(function() local mousePos = GetMouseViewportPosition() circle.Position = UDim2.fromOffset(mousePos.X, mousePos.Y) if toggleHeld and not lockUsed then local found = GetTarget() if found then target = found lockUsed = true end end if toggleHeld and target then if target.Parent then local humanoid = target.Parent:FindFirstChildOfClass("Humanoid") if humanoid and humanoid.Health > 0 then camera.CFrame = CFrame.new( camera.CFrame.Position, target.Position ) else target = nil end else target = nil end end end)