-- ============================================================ -- By sidrimxim11 -- Aim (R) + FOV (RGB) + Crosshair + Target Indicator + Macro (MMB) -- Distance slider + Auto-click (LMB) when target within 3 studs -- ============================================================ local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UIS = game:GetService("UserInputService") local Workspace = game:GetService("Workspace") local TweenService = game:GetService("TweenService") local VIM = game:GetService("VirtualInputManager") local Camera = Workspace.CurrentCamera local LP = Players.LocalPlayer -- ============================================================ -- НАСТРОЙКИ -- ============================================================ local TOGGLE_KEY = Enum.KeyCode.R local FIREWORK_KEY = Enum.UserInputType.MouseButton3 -- MMB local FOV = 250 local SMOOTH = 0.35 local MAX_DIST = 500 -- будет меняться слайдером local AUTO_CLICK_DIST = 3 -- радиус авто-клика (студов) local RGB_SPEED = 1.5 local SENS = 1.0 -- ============================================================ -- СОСТОЯНИЕ -- ============================================================ local running = true local connections = {} local hue = 0 local aimEnabled = false local cross_state = false local fw_busy = false local fovGui, fovCircle, fovStroke, targetDot local crossGui, crossH, crossV, crossDot local mainGui, mainFrame, aimBtn, fwBtn, unloadBtn, titleLabel -- ============================================================ -- УТИЛИТЫ -- ============================================================ local function add_conn(c) connections[#connections + 1] = c return c end local function disconnect_all() for _, c in ipairs(connections) do pcall(function() c:Disconnect() end) end connections = {} end local function tween(obj, props, dur) local t = TweenService:Create(obj, TweenInfo.new(dur or 0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), props) t:Play() return t end -- ============================================================ -- FOV КРУГ -- ============================================================ local function make_fov() fovGui = Instance.new("ScreenGui") fovGui.Name = "ws_fov" fovGui.ResetOnSpawn = false fovGui.IgnoreGuiInset = true fovGui.Parent = game:GetService("CoreGui") fovCircle = Instance.new("Frame") fovCircle.Size = UDim2.new(0, FOV * 2, 0, FOV * 2) fovCircle.Position = UDim2.new(0.5, -FOV, 0.5, -FOV) fovCircle.BackgroundTransparency = 1 fovCircle.BorderSizePixel = 0 fovCircle.Parent = fovGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(1, 0) corner.Parent = fovCircle fovStroke = Instance.new("UIStroke") fovStroke.Thickness = 2 fovStroke.Color = Color3.fromRGB(255, 0, 0) fovStroke.Transparency = 0.5 fovStroke.Parent = fovCircle targetDot = Instance.new("Frame") targetDot.Size = UDim2.new(0, 10, 0, 10) targetDot.AnchorPoint = Vector2.new(0.5, 0.5) targetDot.BackgroundColor3 = Color3.fromRGB(255, 60, 60) targetDot.BorderSizePixel = 0 targetDot.Visible = false targetDot.Parent = fovCircle local dCorner = Instance.new("UICorner") dCorner.CornerRadius = UDim.new(1, 0) dCorner.Parent = targetDot local dStroke = Instance.new("UIStroke") dStroke.Color = Color3.fromRGB(255, 255, 255) dStroke.Thickness = 1 dStroke.Transparency = 0.3 dStroke.Parent = targetDot end -- ============================================================ -- КРЕСТИК -- ============================================================ local function make_cross() crossGui = Instance.new("ScreenGui") crossGui.Name = "ws_cross" crossGui.ResetOnSpawn = false crossGui.IgnoreGuiInset = true crossGui.Parent = game:GetService("CoreGui") crossH = Instance.new("Frame") crossH.Size = UDim2.new(0, 0, 0, 2) crossH.AnchorPoint = Vector2.new(0.5, 0.5) crossH.Position = UDim2.new(0.5, 0, 0.5, 0) crossH.BackgroundColor3 = Color3.fromRGB(255, 255, 255) crossH.BorderSizePixel = 0 crossH.BackgroundTransparency = 0.3 crossH.Visible = false crossH.Parent = crossGui local hGrad = Instance.new("UIGradient") hGrad.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 150, 255)), }) hGrad.Parent = crossH crossV = Instance.new("Frame") crossV.Size = UDim2.new(0, 2, 0, 0) crossV.AnchorPoint = Vector2.new(0.5, 0.5) crossV.Position = UDim2.new(0.5, 0, 0.5, 0) crossV.BackgroundColor3 = Color3.fromRGB(255, 255, 255) crossV.BorderSizePixel = 0 crossV.BackgroundTransparency = 0.3 crossV.Visible = false crossV.Parent = crossGui local vGrad = Instance.new("UIGradient") vGrad.Rotation = 90 vGrad.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 150, 255)), }) vGrad.Parent = crossV crossDot = Instance.new("Frame") crossDot.Size = UDim2.new(0, 0, 0, 0) crossDot.AnchorPoint = Vector2.new(0.5, 0.5) crossDot.Position = UDim2.new(0.5, 0, 0.5, 0) crossDot.BackgroundColor3 = Color3.fromRGB(255, 60, 60) crossDot.BorderSizePixel = 0 crossDot.Visible = false crossDot.Parent = crossGui local cCorner = Instance.new("UICorner") cCorner.CornerRadius = UDim.new(1, 0) cCorner.Parent = crossDot end local function cross_set_active(state) if state then crossH.Visible = true crossV.Visible = true crossDot.Visible = true tween(crossH, { Size = UDim2.new(0, 18, 0, 2), BackgroundTransparency = 0 }, 0.15) tween(crossV, { Size = UDim2.new(0, 2, 0, 18), BackgroundTransparency = 0 }, 0.15) tween(crossDot, { Size = UDim2.new(0, 6, 0, 6) }, 0.15) else tween(crossH, { Size = UDim2.new(0, 0, 0, 2), BackgroundTransparency = 1 }, 0.15) tween(crossV, { Size = UDim2.new(0, 2, 0, 0), BackgroundTransparency = 1 }, 0.15) tween(crossDot, { Size = UDim2.new(0, 0, 0, 0) }, 0.15) task.delay(0.16, function() if running then crossH.Visible = false crossV.Visible = false crossDot.Visible = false end end) end end -- ============================================================ -- МАКРОС: 2 -> MouseButton2 (ПКМ) -> 1 -- ============================================================ local function do_firework() if fw_busy then return end fw_busy = true task.spawn(function() -- 1. Слот 2 VIM:SendKeyEvent(true, Enum.KeyCode.Two, false, game) VIM:SendKeyEvent(false, Enum.KeyCode.Two, false, game) task.wait(0.1) -- 2. Клик MouseButton2 (правая кнопка мыши) if type(mouse2click) == "function" then mouse2click() else local mouse = LP:GetMouse() VIM:SendMouseButtonEvent(mouse.X, mouse.Y, 2, true, game, 0) -- 2 = MouseButton2 task.wait(0.05) VIM:SendMouseButtonEvent(mouse.X, mouse.Y, 2, false, game, 0) end task.wait(0.1) -- 3. Слот 1 VIM:SendKeyEvent(true, Enum.KeyCode.One, false, game) VIM:SendKeyEvent(false, Enum.KeyCode.One, false, game) task.wait(0.1) fw_busy = false end) end -- ============================================================ -- GUI -- ============================================================ local function make_gui() mainGui = Instance.new("ScreenGui") mainGui.Name = "By_sidrimxim11" mainGui.ResetOnSpawn = false mainGui.IgnoreGuiInset = true mainGui.Parent = game:GetService("CoreGui") mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 260, 0, 0) mainFrame.Position = UDim2.new(0, 20, 0, 100) mainFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 18) mainFrame.BorderSizePixel = 0 mainFrame.Active = true mainFrame.Draggable = true mainFrame.ClipsDescendants = true mainFrame.Parent = mainGui local corner = Instance.new("UICorner"); corner.CornerRadius = UDim.new(0, 12); corner.Parent = mainFrame local stroke = Instance.new("UIStroke"); stroke.Color = Color3.fromRGB(50, 50, 60); stroke.Thickness = 1; stroke.Transparency = 0.2; stroke.Parent = mainFrame local gradient = Instance.new("UIGradient") gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 20, 26)), ColorSequenceKeypoint.new(1, Color3.fromRGB(12, 12, 16)), }) gradient.Parent = mainFrame local header = Instance.new("Frame") header.Size = UDim2.new(1, 0, 0, 50) header.BackgroundColor3 = Color3.fromRGB(20, 20, 25) header.BorderSizePixel = 0 header.Parent = mainFrame local hCorner = Instance.new("UICorner"); hCorner.CornerRadius = UDim.new(0, 12); hCorner.Parent = header titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(1, -60, 1, 0) titleLabel.Position = UDim2.new(0, 16, 0, 0) titleLabel.BackgroundTransparency = 1 titleLabel.Text = "By sidrimxim11" titleLabel.TextColor3 = Color3.fromRGB(255, 80, 80) titleLabel.Font = Enum.Font.GothamBold titleLabel.TextSize = 22 titleLabel.TextXAlignment = Enum.TextXAlignment.Left titleLabel.Parent = header local titleGrad = Instance.new("UIGradient") titleGrad.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(0.25, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(0, 255, 0)), ColorSequenceKeypoint.new(0.75, Color3.fromRGB(0, 150, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 255)), }) titleGrad.Parent = titleLabel local dot = Instance.new("Frame") dot.Size = UDim2.new(0, 10, 0, 10) dot.Position = UDim2.new(1, -24, 0.5, -5) dot.BackgroundColor3 = Color3.fromRGB(80, 220, 120) dot.BorderSizePixel = 0 dot.Parent = header local dCorner = Instance.new("UICorner"); dCorner.CornerRadius = UDim.new(1, 0); dCorner.Parent = dot local dGlow = Instance.new("UIStroke"); dGlow.Color = Color3.fromRGB(80, 220, 120); dGlow.Thickness = 2; dGlow.Transparency = 0.7; dGlow.Parent = dot local sep = Instance.new("Frame") sep.Size = UDim2.new(1, -20, 0, 1) sep.Position = UDim2.new(0, 10, 0, 50) sep.BackgroundColor3 = Color3.fromRGB(50, 50, 60) sep.BorderSizePixel = 0 sep.Parent = mainFrame local list = Instance.new("Frame") list.Size = UDim2.new(1, 0, 0, 0) list.Position = UDim2.new(0, 0, 0, 52) list.BackgroundTransparency = 1 list.AutomaticSize = Enum.AutomaticSize.Y list.Parent = mainFrame local listLayout = Instance.new("UIListLayout"); listLayout.Padding = UDim.new(0, 6); listLayout.SortOrder = Enum.SortOrder.LayoutOrder; listLayout.Parent = list local listPad = Instance.new("UIPadding"); listPad.PaddingTop = UDim.new(0, 6); listPad.PaddingBottom = UDim.new(0, 10); listPad.PaddingLeft = UDim.new(0, 10); listPad.PaddingRight = UDim.new(0, 10); listPad.Parent = list local function make_button(text, layoutOrder, onClick) local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, 0, 0, 36) btn.BackgroundColor3 = Color3.fromRGB(28, 28, 34) btn.TextColor3 = Color3.fromRGB(220, 220, 225) btn.Font = Enum.Font.Gotham btn.TextSize = 13 btn.Text = text btn.TextXAlignment = Enum.TextXAlignment.Left btn.LayoutOrder = layoutOrder btn.AutoButtonColor = false btn.Parent = list local bCorner = Instance.new("UICorner"); bCorner.CornerRadius = UDim.new(0, 8); bCorner.Parent = btn local bPad = Instance.new("UIPadding"); bPad.PaddingLeft = UDim.new(0, 12); bPad.Parent = btn local bStroke = Instance.new("UIStroke"); bStroke.Color = Color3.fromRGB(50, 50, 60); bStroke.Thickness = 1; bStroke.Transparency = 0.4; bStroke.Parent = btn add_conn(btn.MouseEnter:Connect(function() if not btn:GetAttribute("active") then tween(btn, { BackgroundColor3 = Color3.fromRGB(38, 38, 46) }, 0.15) tween(bStroke, { Transparency = 0.2 }, 0.15) end end)) add_conn(btn.MouseLeave:Connect(function() if btn:GetAttribute("active") then tween(btn, { BackgroundColor3 = Color3.fromRGB(45, 25, 25) }, 0.15) else tween(btn, { BackgroundColor3 = Color3.fromRGB(28, 28, 34) }, 0.15) end tween(bStroke, { Transparency = 0.4 }, 0.15) end)) add_conn(btn.MouseButton1Click:Connect(onClick)) return btn end local function toggle_button(btn, label, isOn) btn:SetAttribute("active", isOn) btn.Text = label .. ": " .. (isOn and "ON" or "OFF") btn.TextColor3 = isOn and Color3.fromRGB(255, 120, 120) or Color3.fromRGB(200, 200, 205) tween(btn, { BackgroundColor3 = isOn and Color3.fromRGB(45, 25, 25) or Color3.fromRGB(28, 28, 34) }, 0.15) end aimBtn = make_button("Aim (R): OFF", 1, function() aimEnabled = not aimEnabled toggle_button(aimBtn, "Aim (R)", aimEnabled) end) fwBtn = make_button("Firework (MMB): OFF", 2, function() fwBtn:SetAttribute("active", not fwBtn:GetAttribute("active")) toggle_button(fwBtn, "Firework (MMB)", fwBtn:GetAttribute("active")) end) -- FOV слайдер local sliderHolder = Instance.new("Frame") sliderHolder.Size = UDim2.new(1, 0, 0, 50) sliderHolder.BackgroundColor3 = Color3.fromRGB(28, 28, 34) sliderHolder.LayoutOrder = 3 sliderHolder.Parent = list local shCorner = Instance.new("UICorner"); shCorner.CornerRadius = UDim.new(0, 8); shCorner.Parent = sliderHolder local shStroke = Instance.new("UIStroke"); shStroke.Color = Color3.fromRGB(50, 50, 60); shStroke.Thickness = 1; shStroke.Transparency = 0.4; shStroke.Parent = sliderHolder local sliderLabel = Instance.new("TextLabel") sliderLabel.Size = UDim2.new(1, -24, 0, 20) sliderLabel.Position = UDim2.new(0, 12, 0, 4) sliderLabel.BackgroundTransparency = 1 sliderLabel.Text = "FOV: " .. FOV sliderLabel.TextColor3 = Color3.fromRGB(220, 220, 225) sliderLabel.Font = Enum.Font.Gotham sliderLabel.TextSize = 13 sliderLabel.TextXAlignment = Enum.TextXAlignment.Left sliderLabel.Parent = sliderHolder local sliderTrack = Instance.new("Frame") sliderTrack.Size = UDim2.new(1, -24, 0, 6) sliderTrack.Position = UDim2.new(0, 12, 0, 32) sliderTrack.BackgroundColor3 = Color3.fromRGB(50, 50, 58) sliderTrack.BorderSizePixel = 0 sliderTrack.Parent = sliderHolder local stCorner = Instance.new("UICorner"); stCorner.CornerRadius = UDim.new(1, 0); stCorner.Parent = sliderTrack local sliderFill = Instance.new("Frame") sliderFill.Size = UDim2.new(0.5, 0, 1, 0) sliderFill.BackgroundColor3 = Color3.fromRGB(255, 80, 80) sliderFill.BorderSizePixel = 0 sliderFill.Parent = sliderTrack local sfCorner = Instance.new("UICorner"); sfCorner.CornerRadius = UDim.new(1, 0); sfCorner.Parent = sliderFill local sliderBtn = Instance.new("TextButton") sliderBtn.Size = UDim2.new(1, 24, 0, 30) sliderBtn.Position = UDim2.new(0, -12, 0, -12) sliderBtn.BackgroundTransparency = 1 sliderBtn.Text = "" sliderBtn.Parent = sliderTrack local dragging = false local function set_fov_from_x(mouseX) local rel = (mouseX - sliderTrack.AbsolutePosition.X) / sliderTrack.AbsoluteSize.X rel = math.clamp(rel, 0, 1) FOV = math.floor(50 + rel * 450) sliderFill.Size = UDim2.new(rel, 0, 1, 0) sliderLabel.Text = "FOV: " .. FOV if fovCircle then fovCircle.Size = UDim2.new(0, FOV * 2, 0, FOV * 2) fovCircle.Position = UDim2.new(0.5, -FOV, 0.5, -FOV) end end add_conn(sliderBtn.MouseButton1Down:Connect(function() dragging = true set_fov_from_x(UIS:GetMouseLocation().X) end)) add_conn(UIS.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then set_fov_from_x(input.Position.X) end end)) add_conn(UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end)) -- DISTANCE слайдер local distHolder = Instance.new("Frame") distHolder.Size = UDim2.new(1, 0, 0, 50) distHolder.BackgroundColor3 = Color3.fromRGB(28, 28, 34) distHolder.LayoutOrder = 4 distHolder.Parent = list local dCorner = Instance.new("UICorner"); dCorner.CornerRadius = UDim.new(0, 8); dCorner.Parent = distHolder local dStroke = Instance.new("UIStroke"); dStroke.Color = Color3.fromRGB(50, 50, 60); dStroke.Thickness = 1; dStroke.Transparency = 0.4; dStroke.Parent = distHolder local distLabel = Instance.new("TextLabel") distLabel.Size = UDim2.new(1, -24, 0, 20) distLabel.Position = UDim2.new(0, 12, 0, 4) distLabel.BackgroundTransparency = 1 distLabel.Text = "Distance: " .. MAX_DIST distLabel.TextColor3 = Color3.fromRGB(220, 220, 225) distLabel.Font = Enum.Font.Gotham distLabel.TextSize = 13 distLabel.TextXAlignment = Enum.TextXAlignment.Left distLabel.Parent = distHolder local distTrack = Instance.new("Frame") distTrack.Size = UDim2.new(1, -24, 0, 6) distTrack.Position = UDim2.new(0, 12, 0, 32) distTrack.BackgroundColor3 = Color3.fromRGB(50, 50, 58) distTrack.BorderSizePixel = 0 distTrack.Parent = distHolder local dtCorner = Instance.new("UICorner"); dtCorner.CornerRadius = UDim.new(1, 0); dtCorner.Parent = distTrack local distFill = Instance.new("Frame") distFill.Size = UDim2.new((MAX_DIST - 50) / 450, 0, 1, 0) distFill.BackgroundColor3 = Color3.fromRGB(80, 200, 255) distFill.BorderSizePixel = 0 distFill.Parent = distTrack local dfCorner = Instance.new("UICorner"); dfCorner.CornerRadius = UDim.new(1, 0); dfCorner.Parent = distFill local distBtn = Instance.new("TextButton") distBtn.Size = UDim2.new(1, 24, 0, 30) distBtn.Position = UDim2.new(0, -12, 0, -12) distBtn.BackgroundTransparency = 1 distBtn.Text = "" distBtn.Parent = distTrack local draggingDist = false local function set_dist_from_x(mouseX) local rel = (mouseX - distTrack.AbsolutePosition.X) / distTrack.AbsoluteSize.X rel = math.clamp(rel, 0, 1) MAX_DIST = math.floor(50 + rel * 450) distFill.Size = UDim2.new(rel, 0, 1, 0) distLabel.Text = "Distance: " .. MAX_DIST end add_conn(distBtn.MouseButton1Down:Connect(function() draggingDist = true set_dist_from_x(UIS:GetMouseLocation().X) end)) add_conn(UIS.InputChanged:Connect(function(input) if draggingDist and input.UserInputType == Enum.UserInputType.MouseMovement then set_dist_from_x(input.Position.X) end end)) add_conn(UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then draggingDist = false end end)) unloadBtn = make_button("UNLOAD", 5, function() unload() end) unloadBtn.TextColor3 = Color3.fromRGB(255, 80, 80) tween(mainFrame, { Size = UDim2.new(0, 260, 0, 52 + 5 * 42 + 56) }, 0.4) end -- ============================================================ -- АИМ -- ============================================================ local targets = {} local function parse_name(text) local n = text:match('>([^<]+)<') or text return n:gsub("%s+$", "") end local function refresh() targets = {} for _, obj in ipairs(Workspace:GetChildren()) do if obj.Name == "PlayerHitbox" and obj:IsA("BasePart") then local nametag = obj:FindFirstChild("nametag") if nametag then for _, lbl in ipairs(nametag:GetDescendants()) do if lbl:IsA("TextLabel") then local n = parse_name(lbl.Text) if n and n ~= "" and not n:find("♥") then if n ~= LP.Name then targets[obj] = { part = obj, name = n } end break end end end end end end end local function world_to_screen(pos) local sp, on = Camera:WorldToViewportPoint(pos) return Vector2.new(sp.X, sp.Y), on and sp.Z > 0 end local function find_target() local center = Camera.ViewportSize / 2 local best, best_score = nil, math.huge for part in pairs(targets) do if part and part.Parent then local pos = part.Position local d = (pos - Camera.CFrame.Position).Magnitude if d <= MAX_DIST then local sp, on = world_to_screen(pos) if on then local fov_dist = (sp - center).Magnitude if fov_dist <= FOV and fov_dist < best_score then best = part best_score = fov_dist end end end end end return best end local function update_target_indicator(target) if not targetDot or not fovCircle then return end if not target then targetDot.Visible = false; return end local center = Camera.ViewportSize / 2 local sp, on = world_to_screen(target.Position) if not on then targetDot.Visible = false; return end local dx = sp.X - center.X local dy = sp.Y - center.Y local dist = math.sqrt(dx * dx + dy * dy) if dist <= FOV then targetDot.Position = UDim2.new(0, FOV + dx, 0, FOV + dy) targetDot.BackgroundColor3 = Color3.fromRGB(255, 60, 60) else local ang = math.atan2(dy, dx) targetDot.Position = UDim2.new(0, FOV + math.cos(ang) * FOV, 0, FOV + math.sin(ang) * FOV) targetDot.BackgroundColor3 = Color3.fromRGB(255, 180, 60) end targetDot.Visible = true end local function aim_mouse(target) local sp, on = world_to_screen(target.Position) if not on then return end local center = Camera.ViewportSize / 2 local dx = (sp.X - center.X) * SMOOTH * SENS local dy = (sp.Y - center.Y) * SMOOTH * SENS if type(mousemoverel) == "function" then mousemoverel(dx, dy) end end -- ============================================================ -- ГЛАВНЫЙ ЦИКЛ -- ============================================================ local auto_click_cd = 0 local function tick_aim(dt) if not running then return end hue = (hue + dt * RGB_SPEED) % 1 if fovStroke then fovStroke.Color = Color3.fromHSV(hue, 1, 1) end if titleLabel and titleLabel:FindFirstChildOfClass("UIGradient") then local g = titleLabel:FindFirstChildOfClass("UIGradient") g.Rotation = (g.Rotation + dt * 60) % 360 end local active = aimEnabled if active ~= cross_state then cross_state = active cross_set_active(active) end if fovStroke then fovStroke.Thickness = active and 3 or 2 fovStroke.Transparency = active and 0 or 0.5 end local target = find_target() if target then if active then aim_mouse(target) end -- авто-клик ЛКМ, если цель в радиусе AUTO_CLICK_DIST local my_char = LP.Character local my_pos = my_char and my_char:FindFirstChild("HumanoidRootPart") and my_char.HumanoidRootPart.Position if my_pos then local target_pos = target.Position local dist = (target_pos - my_pos).Magnitude if dist <= AUTO_CLICK_DIST then -- кулдаун 0.1 сек, чтобы не спамить if tick() - auto_click_cd > 0.1 then auto_click_cd = tick() if type(mouse1click) == "function" then mouse1click() else local mouse = LP:GetMouse() VIM:SendMouseButtonEvent(mouse.X, mouse.Y, 1, true, game, 0) -- 1 = MouseButton1 (ЛКМ) task.wait(0.05) VIM:SendMouseButtonEvent(mouse.X, mouse.Y, 1, false, game, 0) end end end end end update_target_indicator(target) end -- ============================================================ -- UNLOAD -- ============================================================ function unload() running = false disconnect_all() pcall(function() RunService:UnbindFromRenderStep("ws_aim") end) if fovGui then pcall(function() fovGui:Destroy() end) end if crossGui then pcall(function() crossGui:Destroy() end) end if mainGui then pcall(function() mainGui:Destroy() end) end print("[By sidrimxim11] unloaded.") end -- ============================================================ -- ЗАПУСК -- ============================================================ make_fov() make_cross() make_gui() add_conn(UIS.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == TOGGLE_KEY then aimEnabled = not aimEnabled if aimBtn then aimBtn:SetAttribute("active", aimEnabled) aimBtn.Text = "Aim (R): " .. (aimEnabled and "ON" or "OFF") aimBtn.TextColor3 = aimEnabled and Color3.fromRGB(255, 120, 120) or Color3.fromRGB(200, 200, 205) tween(aimBtn, { BackgroundColor3 = aimEnabled and Color3.fromRGB(45, 25, 25) or Color3.fromRGB(28, 28, 34) }, 0.15) end end end)) add_conn(UIS.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.UserInputType == FIREWORK_KEY then if fwBtn and fwBtn:GetAttribute("active") then do_firework() end end end)) add_conn(task.spawn(function() while running do pcall(refresh) task.wait(1) end end)) RunService:BindToRenderStep("ws_aim", 201, function(dt) pcall(tick_aim, dt) end) print("[By sidrimxim11] loaded.")