-- Получаем сервисы и игрока local Players = game:GetService("Players") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") -- Создаем GUI local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "KillAuraGUI" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = PlayerGui -- Основной фрейм local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 200, 0, 120) MainFrame.Position = UDim2.new(0.5, -100, 0.5, -60) MainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) MainFrame.BorderSizePixel = 0 MainFrame.ClipsDescendants = true MainFrame.Active = true MainFrame.Draggable = true MainFrame.Parent = ScreenGui -- Заголовок панели local TitleBar = Instance.new("Frame") TitleBar.Name = "TitleBar" TitleBar.Size = UDim2.new(1, 0, 0, 20) TitleBar.Position = UDim2.new(0, 0, 0, 0) TitleBar.BackgroundColor3 = Color3.fromRGB(30, 30, 30) TitleBar.BorderSizePixel = 0 TitleBar.Parent = MainFrame -- Текст заголовка local Title = Instance.new("TextLabel") Title.Name = "Title" Title.Size = UDim2.new(0, 100, 1, 0) Title.Position = UDim2.new(0, 5, 0, 0) Title.BackgroundTransparency = 1 Title.Text = "Kill Aura" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextXAlignment = Enum.TextXAlignment.Left Title.Font = Enum.Font.SourceSans Title.TextSize = 14 Title.Parent = TitleBar -- Кнопка закрытия local CloseButton = Instance.new("TextButton") CloseButton.Name = "CloseButton" CloseButton.Size = UDim2.new(0, 20, 1, 0) CloseButton.Position = UDim2.new(1, -20, 0, 0) CloseButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50) CloseButton.BorderSizePixel = 0 CloseButton.Text = "X" CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255) CloseButton.Font = Enum.Font.SourceSans CloseButton.TextSize = 14 CloseButton.Parent = TitleBar -- Кнопка минимизации local MinimizeButton = Instance.new("TextButton") MinimizeButton.Name = "MinimizeButton" MinimizeButton.Size = UDim2.new(0, 20, 1, 0) MinimizeButton.Position = UDim2.new(1, -40, 0, 0) MinimizeButton.BackgroundColor3 = Color3.fromRGB(200, 200, 50) MinimizeButton.BorderSizePixel = 0 MinimizeButton.Text = "_" MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255) MinimizeButton.Font = Enum.Font.SourceSans MinimizeButton.TextSize = 14 MinimizeButton.Parent = TitleBar -- Фрейм контента local ContentFrame = Instance.new("Frame") ContentFrame.Name = "ContentFrame" ContentFrame.Size = UDim2.new(1, 0, 1, -20) ContentFrame.Position = UDim2.new(0, 0, 0, 20) ContentFrame.BackgroundTransparency = 1 ContentFrame.Visible = true ContentFrame.Parent = MainFrame -- Кнопка Kill Aura local KillAuraButton = Instance.new("TextButton") KillAuraButton.Name = "KillAuraButton" KillAuraButton.Size = UDim2.new(0.8, 0, 0, 30) KillAuraButton.Position = UDim2.new(0.1, 0, 0.2, 0) KillAuraButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60) KillAuraButton.BorderSizePixel = 0 KillAuraButton.Text = "Kill Aura" KillAuraButton.TextColor3 = Color3.fromRGB(255, 255, 255) KillAuraButton.Font = Enum.Font.SourceSans KillAuraButton.TextSize = 14 KillAuraButton.Parent = ContentFrame -- Лейбл для атрибуции local CreditLabel = Instance.new("TextLabel") CreditLabel.Name = "CreditLabel" CreditLabel.Size = UDim2.new(0.8, 0, 0, 20) CreditLabel.Position = UDim2.new(0.1, 0, 0.6, 0) CreditLabel.BackgroundTransparency = 1 CreditLabel.Text = "Created by You" CreditLabel.TextColor3 = Color3.fromRGB(200, 200, 200) CreditLabel.Font = Enum.Font.SourceSans CreditLabel.TextSize = 14 CreditLabel.Parent = ContentFrame -- Переменные для Kill Aura local KillAuraEnabled = false local RangePart = nil local HeartbeatConnection = nil local Range = 50 -- Радиус действия (в stud) -- Переменная для вращения local BodyAngularVelocity = nil local SpinSpeed = 50 -- Скорость вращения (рад/с, можно настроить) -- Функция закрытия GUI CloseButton.MouseButton1Click:Connect(function() ScreenGui:Destroy() end) -- Функция минимизации local Minimized = false local OriginalSize = MainFrame.Size MinimizeButton.MouseButton1Click:Connect(function() Minimized = not Minimized if Minimized then MainFrame.Size = UDim2.new(OriginalSize.X.Scale, OriginalSize.X.Offset, 0, 20) ContentFrame.Visible = false else MainFrame.Size = OriginalSize ContentFrame.Visible = true end end) -- Функция включения Kill Aura и вращения local function EnableKillAura() -- Создаем часть для визуализации радиуса RangePart = Instance.new("Part") RangePart.Name = "KillAuraRange" RangePart.Shape = Enum.PartType.Ball RangePart.Size = Vector3.new(Range * 2, Range * 2, Range * 2) RangePart.Anchored = true RangePart.CanCollide = false RangePart.Transparency = 0.9 RangePart.Material = Enum.Material.Neon RangePart.Color = Color3.fromRGB(0, 255, 255) RangePart.Parent = workspace -- Добавляем вращение персонажа if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then BodyAngularVelocity = Instance.new("BodyAngularVelocity") BodyAngularVelocity.Name = "SpinVelocity" BodyAngularVelocity.MaxTorque = Vector3.new(0, math.huge, 0) -- Вращение только по оси Y BodyAngularVelocity.AngularVelocity = Vector3.new(0, SpinSpeed, 0) -- Скорость вращения BodyAngularVelocity.Parent = LocalPlayer.Character.HumanoidRootPart end -- Обновление позиции части и атака HeartbeatConnection = RunService.Heartbeat:Connect(function() if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then -- Обновляем позицию части RangePart.Position = LocalPlayer.Character.HumanoidRootPart.Position -- Находим инструмент local Tool = LocalPlayer.Character:FindFirstChildOfClass("Tool") if Tool and Tool:FindFirstChild("Handle") then -- Проверяем части в радиусе local PartsInRange = workspace:GetPartsInPart(RangePart) for _, Part in ipairs(PartsInRange) do if Part.Parent and Part.Parent ~= LocalPlayer.Character and Part.Parent:FindFirstChildOfClass("Humanoid") then -- Активируем инструмент и симулируем касание Tool:Activate() pcall(function() firetouchinterest(Tool.Handle, Part, 0) firetouchinterest(Tool.Handle, Part, 1) end) end end end end end) end -- Функция отключения Kill Aura и вращения local function DisableKillAura() if HeartbeatConnection then HeartbeatConnection:Disconnect() HeartbeatConnection = nil end if RangePart then RangePart:Destroy() RangePart = nil end if BodyAngularVelocity then BodyAngularVelocity:Destroy() BodyAngularVelocity = nil end end -- Обработчик кнопки Kill Aura KillAuraButton.MouseButton1Click:Connect(function() KillAuraEnabled = not KillAuraEnabled if KillAuraEnabled then KillAuraButton.Text = "Kill Aura (ON)" KillAuraButton.BackgroundColor3 = Color3.fromRGB(0, 150, 0) EnableKillAura() else KillAuraButton.Text = "Kill Aura" KillAuraButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60) DisableKillAura() end end)