local player = game:GetService("Players").LocalPlayer local mouse = player:GetMouse() local UIS = game:GetService("UserInputService") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") local Players = game:GetService("Players") local Workspace = game:GetService("Workspace") repeat task.wait() until player:IsDescendantOf(game) -- Настройки local settings = { menuVisible = false, currentTab = "ESP", triggerEnabled = true, triggerMode = "Всегда", triggerBindKey = Enum.KeyCode.LeftAlt, espEnabled = true, espColor = Color3.fromRGB(255, 0, 0), espTransparency = 0.7, aimbotEnabled = true, aimbotMode = "Всегда", aimbotBindKey = Enum.KeyCode.X, aimbotPart = "Head", aimbotMaxDistance = 500, aimbotFOV = 20, aimbotShowFOV = true, aimbotVisibleOnly = true } -- Переменные для работы local chams = {} local fovCircle local aimConnection local triggerConnection local changingBind = false local mainFrame, screenGui -- Списки доступных частей тела local AIM_PARTS = { "Head", "HumanoidRootPart", "UpperTorso", "LowerTorso", "RightHand", "LeftHand", "RightFoot", "LeftFoot" } -- Функция для получения имени клавиши local function getKeyName(keyCode) local name = tostring(keyCode) return name:gsub("Enum.KeyCode.", "") end -- ====================== ESP (Chams) Функции ====================== local function createChams(targetPlayer) if not settings.espEnabled or targetPlayer == player then return end if chams[targetPlayer] then chams[targetPlayer]:Destroy() end local highlight = Instance.new("Highlight") highlight.Name = "Pi$daWare_Chams" highlight.FillColor = settings.espColor highlight.FillTransparency = settings.espTransparency highlight.OutlineColor = settings.espColor highlight.OutlineTransparency = 0 highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop highlight.Parent = game:GetService("CoreGui") if targetPlayer.Character then highlight.Adornee = targetPlayer.Character end targetPlayer.CharacterAdded:Connect(function(character) task.wait(0.5) highlight.Adornee = character end) targetPlayer.CharacterRemoving:Connect(function() highlight.Adornee = nil end) chams[targetPlayer] = highlight end local function removeChams(targetPlayer) if chams[targetPlayer] then chams[targetPlayer]:Destroy() chams[targetPlayer] = nil end end local function updateAllChams() for _, p in pairs(Players:GetPlayers()) do if p ~= player then if settings.espEnabled then createChams(p) else removeChams(p) end end end end -- ====================== Аимбот Функции ====================== local function createFOVCircle() if not settings.aimbotShowFOV then return end local screenGui = Instance.new("ScreenGui") screenGui.Name = "AimbotFOV" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, settings.aimbotFOV * 20, 0, settings.aimbotFOV * 20) frame.AnchorPoint = Vector2.new(0.5, 0.5) frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) frame.BackgroundTransparency = 0.8 frame.BorderSizePixel = 2 frame.BorderColor3 = Color3.fromRGB(255, 0, 0) frame.ZIndex = 10 local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(1, 0) corner.Parent = frame frame.Parent = screenGui fovCircle = frame UIS.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement and fovCircle then local mousePos = UIS:GetMouseLocation() fovCircle.Position = UDim2.new(0, mousePos.X, 0, mousePos.Y) end end) RunService.RenderStepped:Connect(function() if fovCircle then fovCircle.Size = UDim2.new(0, settings.aimbotFOV * 20, 0, settings.aimbotFOV * 20) end end) end local function shouldAim() if not settings.aimbotEnabled then return false end if settings.aimbotMode == "Никогда" then return false elseif settings.aimbotMode == "Всегда" then return true elseif settings.aimbotMode == "По бинду" then return UIS:IsKeyDown(settings.aimbotBindKey) end return false end local function isVisible(targetPart) if not settings.aimbotVisibleOnly then return true end local camera = Workspace.CurrentCamera local origin = camera.CFrame.Position local direction = (targetPart.Position - origin).Unit local ray = Ray.new(origin, direction * settings.aimbotMaxDistance) local hit = Workspace:FindPartOnRayWithIgnoreList(ray, {player.Character}) if hit then local model = hit:FindFirstAncestorOfClass("Model") if model then local targetPlayer = Players:GetPlayerFromCharacter(model) return targetPlayer and targetPlayer.Character and targetPlayer.Character:FindFirstChild(targetPart.Name) end end return false end local function isInFOV(targetPosition) local camera = Workspace.CurrentCamera if not camera then return false, 0 end local screenPoint = camera:WorldToScreenPoint(targetPosition) if not screenPoint then return false, 0 end local mousePos = UIS:GetMouseLocation() local targetScreenPos = Vector2.new(screenPoint.X, screenPoint.Y) local distanceFromCursor = (targetScreenPos - mousePos).Magnitude local fovInPixels = settings.aimbotFOV * 10 return distanceFromCursor <= fovInPixels, distanceFromCursor end local function findBestTarget() if not player.Character then return nil end local localRoot = player.Character:FindFirstChild("HumanoidRootPart") if not localRoot then return nil end local bestTarget = nil local closestDistance = settings.aimbotMaxDistance local smallestFOVDistance = math.huge for _, p in pairs(Players:GetPlayers()) do if p ~= player and p.Character then local character = p.Character local humanoid = character:FindFirstChildOfClass("Humanoid") local targetPart = character:FindFirstChild(settings.aimbotPart) if not targetPart then targetPart = character:FindFirstChild("HumanoidRootPart") if not targetPart then targetPart = character:FindFirstChild("UpperTorso") end end if humanoid and humanoid.Health > 0 and targetPart then local targetPos = targetPart.Position local distance = (localRoot.Position - targetPos).Magnitude local inFOV, fovDistance = isInFOV(targetPos) if inFOV and distance <= settings.aimbotMaxDistance and isVisible(targetPart) then if fovDistance < smallestFOVDistance then smallestFOVDistance = fovDistance bestTarget = targetPart closestDistance = distance end end end end end return bestTarget end local function fovAim() if not shouldAim() or not Workspace.CurrentCamera then if aimConnection then aimConnection:Disconnect() aimConnection = nil end return end local target = findBestTarget() if target then Workspace.CurrentCamera.CFrame = CFrame.new( Workspace.CurrentCamera.CFrame.Position, target.Position ) end end -- ====================== Триггер Функции ====================== local function shouldClick() if not settings.triggerEnabled then return false end if settings.triggerMode == "Никогда" then return false elseif settings.triggerMode == "Всегда" then return true elseif settings.triggerMode == "По бинду" then return UIS:IsKeyDown(settings.triggerBindKey) end return false end -- ====================== Создание GUI ====================== screenGui = Instance.new("ScreenGui") screenGui.Name = "Pidarware" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 320, 0, 420) mainFrame.Position = UDim2.new(0.5, -160, 0.5, -210) mainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 25) mainFrame.BorderSizePixel = 0 mainFrame.Visible = false mainFrame.Parent = screenGui local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 10) UICorner.Parent = mainFrame local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 35) title.Position = UDim2.new(0, 0, 0, 0) title.BackgroundColor3 = Color3.fromRGB(30, 30, 40) title.TextColor3 = Color3.fromRGB(220, 220, 220) title.Text = "Pi$daWare v2.1" title.Font = Enum.Font.GothamBlack title.TextSize = 18 title.Parent = mainFrame local titleCorner = Instance.new("UICorner") titleCorner.CornerRadius = UDim.new(0, 10, 0, 0) titleCorner.Parent = title -- Вкладки local tabs = {"ESP", "Aimbot", "Trigger", "About"} local tabButtons = {} local tabFrames = {} local tabsContainer = Instance.new("Frame") tabsContainer.Size = UDim2.new(1, 0, 0, 35) tabsContainer.Position = UDim2.new(0, 0, 0, 35) tabsContainer.BackgroundColor3 = Color3.fromRGB(25, 25, 30) tabsContainer.BorderSizePixel = 0 tabsContainer.Parent = mainFrame for i, tabName in ipairs(tabs) do local tabButton = Instance.new("TextButton") tabButton.Size = UDim2.new(1/4, 0, 1, 0) tabButton.Position = UDim2.new((i-1)/4, 0, 0, 0) tabButton.BackgroundColor3 = Color3.fromRGB(25, 25, 30) tabButton.TextColor3 = Color3.fromRGB(180, 180, 180) tabButton.Text = tabName tabButton.Font = Enum.Font.GothamBlack tabButton.TextSize = 11 tabButton.Name = tabName tabButton.Parent = tabsContainer if tabName == settings.currentTab then tabButton.BackgroundColor3 = Color3.fromRGB(35, 35, 45) tabButton.TextColor3 = Color3.fromRGB(255, 255, 255) end local tabFrame = Instance.new("Frame") tabFrame.Size = UDim2.new(1, -20, 1, -75) tabFrame.Position = UDim2.new(0, 10, 0, 75) tabFrame.BackgroundTransparency = 1 tabFrame.Visible = (tabName == settings.currentTab) tabFrame.Parent = mainFrame tabButton.MouseButton1Click:Connect(function() settings.currentTab = tabName for _, btn in pairs(tabButtons) do btn.BackgroundColor3 = Color3.fromRGB(25, 25, 30) btn.TextColor3 = Color3.fromRGB(180, 180, 180) end for _, frame in pairs(tabFrames) do frame.Visible = false end tabButton.BackgroundColor3 = Color3.fromRGB(35, 35, 45) tabButton.TextColor3 = Color3.fromRGB(255, 255, 255) tabFrame.Visible = true end) tabButtons[tabName] = tabButton tabFrames[tabName] = tabFrame -- Заполняем вкладки содержимым if tabName == "ESP" then -- ESP вкладка local espCheckbox = Instance.new("TextButton") espCheckbox.Size = UDim2.new(0, 20, 0, 20) espCheckbox.Position = UDim2.new(0, 0, 0, 0) espCheckbox.BackgroundColor3 = settings.espEnabled and Color3.fromRGB(0, 200, 100) or Color3.fromRGB(80, 80, 80) espCheckbox.BorderSizePixel = 0 espCheckbox.Text = "" espCheckbox.Parent = tabFrame local boxCorner = Instance.new("UICorner") boxCorner.CornerRadius = UDim.new(0, 4) boxCorner.Parent = espCheckbox local espLabel = Instance.new("TextLabel") espLabel.Size = UDim2.new(1, -25, 0, 20) espLabel.Position = UDim2.new(0, 25, 0, 0) espLabel.BackgroundTransparency = 1 espLabel.Text = "Включить ESP" espLabel.TextColor3 = Color3.fromRGB(200, 200, 200) espLabel.TextSize = 13 espLabel.TextXAlignment = Enum.TextXAlignment.Left espLabel.Font = Enum.Font.GothamBlack espLabel.Parent = tabFrame espCheckbox.MouseButton1Click:Connect(function() settings.espEnabled = not settings.espEnabled espCheckbox.BackgroundColor3 = settings.espEnabled and Color3.fromRGB(0, 200, 100) or Color3.fromRGB(80, 80, 80) updateAllChams() end) -- Настройка цвета ESP local colorLabel = Instance.new("TextLabel") colorLabel.Size = UDim2.new(1, 0, 0, 20) colorLabel.Position = UDim2.new(0, 0, 0, 30) colorLabel.BackgroundTransparency = 1 colorLabel.TextColor3 = Color3.fromRGB(180, 180, 180) colorLabel.Text = "Цвет ESP:" colorLabel.Font = Enum.Font.GothamBlack colorLabel.TextSize = 12 colorLabel.Parent = tabFrame local colorPreview = Instance.new("Frame") colorPreview.Size = UDim2.new(0, 100, 0, 25) colorPreview.Position = UDim2.new(0, 0, 0, 55) colorPreview.BackgroundColor3 = settings.espColor colorPreview.BorderSizePixel = 1 colorPreview.BorderColor3 = Color3.fromRGB(255, 255, 255) colorPreview.Parent = tabFrame local colorCorner = Instance.new("UICorner") colorCorner.CornerRadius = UDim.new(0, 4) colorCorner.Parent = colorPreview -- Настройка прозрачности ESP local transLabel = Instance.new("TextLabel") transLabel.Size = UDim2.new(1, 0, 0, 20) transLabel.Position = UDim2.new(0, 0, 0, 90) transLabel.BackgroundTransparency = 1 transLabel.TextColor3 = Color3.fromRGB(180, 180, 180) transLabel.Text = "Прозрачность: " .. math.floor(settings.espTransparency * 100) .. "%" transLabel.Font = Enum.Font.GothamBlack transLabel.TextSize = 12 transLabel.Parent = tabFrame local transSlider = Instance.new("Frame") transSlider.Size = UDim2.new(1, 0, 0, 20) transSlider.Position = UDim2.new(0, 0, 0, 115) transSlider.BackgroundColor3 = Color3.fromRGB(40, 40, 50) transSlider.Parent = tabFrame local transFill = Instance.new("Frame") transFill.Size = UDim2.new(settings.espTransparency, 0, 1, 0) transFill.Position = UDim2.new(0, 0, 0, 0) transFill.BackgroundColor3 = Color3.fromRGB(0, 150, 200) transFill.Parent = transSlider local transCorner = Instance.new("UICorner") transCorner.CornerRadius = UDim.new(0, 4) transCorner.Parent = transSlider local transCorner2 = Instance.new("UICorner") transCorner2.CornerRadius = UDim.new(0, 4) transCorner2.Parent = transFill transSlider.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then local connection connection = input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then connection:Disconnect() else local xPos = input.Position.X - transSlider.AbsolutePosition.X local percent = math.clamp(xPos / transSlider.AbsoluteSize.X, 0, 1) settings.espTransparency = percent transFill.Size = UDim2.new(percent, 0, 1, 0) transLabel.Text = "Прозрачность: " .. math.floor(percent * 100) .. "%" updateAllChams() end end) -- <-- Добавьте этот end для закрытия функции в input.Changed:Connect end end) -- <-- И этот end для закрытия функции в InputBegan:Connect -- end elseif tabName == "Aimbot" then -- Аимбот вкладка local aimbotCheckbox = Instance.new("TextButton") aimbotCheckbox.Size = UDim2.new(0, 20, 0, 20) aimbotCheckbox.Position = UDim2.new(0, 0, 0, 0) aimbotCheckbox.BackgroundColor3 = settings.aimbotEnabled and Color3.fromRGB(0, 200, 100) or Color3.fromRGB(80, 80, 80) aimbotCheckbox.BorderSizePixel = 0 aimbotCheckbox.Text = "" aimbotCheckbox.Parent = tabFrame local boxCorner = Instance.new("UICorner") boxCorner.CornerRadius = UDim.new(0, 4) boxCorner.Parent = aimbotCheckbox local aimbotLabel = Instance.new("TextLabel") aimbotLabel.Size = UDim2.new(1, -25, 0, 20) aimbotLabel.Position = UDim2.new(0, 25, 0, 0) aimbotLabel.BackgroundTransparency = 1 aimbotLabel.Text = "Включить Аимбот" aimbotLabel.TextColor3 = Color3.fromRGB(200, 200, 200) aimbotLabel.TextSize = 13 aimbotLabel.TextXAlignment = Enum.TextXAlignment.Left aimbotLabel.Font = Enum.Font.GothamBlack aimbotLabel.Parent = tabFrame aimbotCheckbox.MouseButton1Click:Connect(function() settings.aimbotEnabled = not settings.aimbotEnabled aimbotCheckbox.BackgroundColor3 = settings.aimbotEnabled and Color3.fromRGB(0, 200, 100) or Color3.fromRGB(80, 80, 80) end) -- Режимы работы аимбота local aimModes = {"По бинду", "Всегда", "Никогда"} for j, modeName in ipairs(aimModes) do local button = Instance.new("TextButton") button.Size = UDim2.new(1, 0, 0, 25) button.Position = UDim2.new(0, 0, 0, 30 + (j-1) * 30) button.BackgroundColor3 = settings.aimbotMode == modeName and Color3.fromRGB(60, 120, 200) or Color3.fromRGB(40, 40, 50) button.TextColor3 = Color3.fromRGB(255, 255, 255) button.Text = modeName button.Font = Enum.Font.GothamBlack button.TextSize = 11 button.Parent = tabFrame button.MouseButton1Click:Connect(function() settings.aimbotMode = modeName for _, btn in pairs(tabFrame:GetChildren()) do if btn:IsA("TextButton") and btn.Text == "По бинду" or btn.Text == "Всегда" or btn.Text == "Никогда" then btn.BackgroundColor3 = Color3.fromRGB(40, 40, 50) end end button.BackgroundColor3 = Color3.fromRGB(60, 120, 200) end) end -- Кнопка для выбора клавиши бинда local aimKeyButton = Instance.new("TextButton") aimKeyButton.Size = UDim2.new(1, 0, 0, 25) aimKeyButton.Position = UDim2.new(0, 0, 0, 120) aimKeyButton.BackgroundColor3 = Color3.fromRGB(60, 60, 70) aimKeyButton.TextColor3 = Color3.fromRGB(255, 255, 255) aimKeyButton.Text = "Клавиша бинда: " .. getKeyName(settings.aimbotBindKey) aimKeyButton.Font = Enum.Font.GothamBlack aimKeyButton.TextSize = 11 aimKeyButton.Parent = tabFrame aimKeyButton.MouseButton1Click:Connect(function() changingBind = "aimbot" aimKeyButton.Text = "[Нажмите клавишу]" aimKeyButton.BackgroundColor3 = Color3.fromRGB(100, 60, 60) end) -- Выбор части тела через выпадающий список local partLabel = Instance.new("TextLabel") partLabel.Size = UDim2.new(1, 0, 0, 20) partLabel.Position = UDim2.new(0, 0, 0, 150) partLabel.BackgroundTransparency = 1 partLabel.TextColor3 = Color3.fromRGB(180, 180, 180) partLabel.Text = "Часть тела:" partLabel.Font = Enum.Font.GothamBlack partLabel.TextSize = 12 partLabel.Parent = tabFrame local partDropdown = Instance.new("TextButton") partDropdown.Size = UDim2.new(1, 0, 0, 25) partDropdown.Position = UDim2.new(0, 0, 0, 175) partDropdown.BackgroundColor3 = Color3.fromRGB(60, 60, 70) partDropdown.TextColor3 = Color3.fromRGB(255, 255, 255) partDropdown.Text = settings.aimbotPart partDropdown.Font = Enum.Font.GothamBlack partDropdown.TextSize = 11 partDropdown.Parent = tabFrame local dropdownCorner = Instance.new("UICorner") dropdownCorner.CornerRadius = UDim.new(0, 4) dropdownCorner.Parent = partDropdown -- Выпадающий список local dropdownFrame = Instance.new("Frame") dropdownFrame.Size = UDim2.new(1, 0, 0, 0) dropdownFrame.Position = UDim2.new(0, 0, 0, 200) dropdownFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 50) dropdownFrame.BorderSizePixel = 0 dropdownFrame.Visible = false dropdownFrame.Parent = tabFrame local scrollFrame = Instance.new("ScrollingFrame") scrollFrame.Size = UDim2.new(1, 0, 0, 100) scrollFrame.Position = UDim2.new(0, 0, 0, 0) scrollFrame.BackgroundTransparency = 1 scrollFrame.ScrollBarThickness = 3 scrollFrame.CanvasSize = UDim2.new(0, 0, 0, #AIM_PARTS * 25) scrollFrame.Visible = false scrollFrame.Parent = dropdownFrame for i, part in ipairs(AIM_PARTS) do local optionButton = Instance.new("TextButton") optionButton.Size = UDim2.new(1, -4, 0, 23) optionButton.Position = UDim2.new(0, 2, 0, (i-1) * 25) optionButton.BackgroundColor3 = Color3.fromRGB(50, 50, 60) optionButton.TextColor3 = Color3.fromRGB(255, 255, 255) optionButton.Text = part optionButton.Font = Enum.Font.GothamBlack optionButton.TextSize = 11 optionButton.Parent = scrollFrame optionButton.MouseButton1Click:Connect(function() settings.aimbotPart = part partDropdown.Text = part dropdownFrame.Visible = false scrollFrame.Visible = false end) end partDropdown.MouseButton1Click:Connect(function() dropdownFrame.Visible = not dropdownFrame.Visible scrollFrame.Visible = dropdownFrame.Visible if dropdownFrame.Visible then dropdownFrame.Size = UDim2.new(1, 0, 0, 100) else dropdownFrame.Size = UDim2.new(1, 0, 0, 0) end end) -- Чекбокс FOV круга local fovCheckbox = Instance.new("TextButton") fovCheckbox.Size = UDim2.new(0, 20, 0, 20) fovCheckbox.Position = UDim2.new(0, 0, 0, 210) fovCheckbox.BackgroundColor3 = settings.aimbotShowFOV and Color3.fromRGB(0, 200, 100) or Color3.fromRGB(80, 80, 80) fovCheckbox.BorderSizePixel = 0 fovCheckbox.Text = "" fovCheckbox.Parent = tabFrame local fovCorner = Instance.new("UICorner") fovCorner.CornerRadius = UDim.new(0, 4) fovCorner.Parent = fovCheckbox local fovLabel = Instance.new("TextLabel") fovLabel.Size = UDim2.new(1, -25, 0, 20) fovLabel.Position = UDim2.new(0, 25, 0, 210) fovLabel.BackgroundTransparency = 1 fovLabel.Text = "Показывать FOV круг" fovLabel.TextColor3 = Color3.fromRGB(200, 200, 200) fovLabel.TextSize = 13 fovLabel.TextXAlignment = Enum.TextXAlignment.Left fovLabel.Font = Enum.Font.GothamBlack fovLabel.Parent = tabFrame fovCheckbox.MouseButton1Click:Connect(function() settings.aimbotShowFOV = not settings.aimbotShowFOV fovCheckbox.BackgroundColor3 = settings.aimbotShowFOV and Color3.fromRGB(0, 200, 100) or Color3.fromRGB(80, 80, 80) if settings.aimbotShowFOV and not fovCircle then createFOVCircle() elseif not settings.aimbotShowFOV and fovCircle then fovCircle.Parent:Destroy() fovCircle = nil end end) -- Чекбокс "Только видимые цели" local visibleCheckbox = Instance.new("TextButton") visibleCheckbox.Size = UDim2.new(0, 20, 0, 20) visibleCheckbox.Position = UDim2.new(0, 0, 0, 240) visibleCheckbox.BackgroundColor3 = settings.aimbotVisibleOnly and Color3.fromRGB(0, 200, 100) or Color3.fromRGB(80, 80, 80) visibleCheckbox.BorderSizePixel = 0 visibleCheckbox.Text = "" visibleCheckbox.Parent = tabFrame local visibleCorner = Instance.new("UICorner") visibleCorner.CornerRadius = UDim.new(0, 4) visibleCorner.Parent = visibleCheckbox local visibleLabel = Instance.new("TextLabel") visibleLabel.Size = UDim2.new(1, -25, 0, 20) visibleLabel.Position = UDim2.new(0, 25, 0, 240) visibleLabel.BackgroundTransparency = 1 visibleLabel.Text = "Только видимые цели" visibleLabel.TextColor3 = Color3.fromRGB(200, 200, 200) visibleLabel.TextSize = 13 visibleLabel.TextXAlignment = Enum.TextXAlignment.Left visibleLabel.Font = Enum.Font.GothamBlack visibleLabel.Parent = tabFrame visibleCheckbox.MouseButton1Click:Connect(function() settings.aimbotVisibleOnly = not settings.aimbotVisibleOnly visibleCheckbox.BackgroundColor3 = settings.aimbotVisibleOnly and Color3.fromRGB(0, 200, 100) or Color3.fromRGB(80, 80, 80) end) -- end elseif tabName == "Trigger" then -- Триггер вкладка local triggerCheckbox = Instance.new("TextButton") triggerCheckbox.Size = UDim2.new(0, 20, 0, 20) triggerCheckbox.Position = UDim2.new(0, 0, 0, 0) triggerCheckbox.BackgroundColor3 = settings.triggerEnabled and Color3.fromRGB(0, 200, 100) or Color3.fromRGB(80, 80, 80) triggerCheckbox.BorderSizePixel = 0 triggerCheckbox.Text = "" triggerCheckbox.Parent = tabFrame local boxCorner = Instance.new("UICorner") boxCorner.CornerRadius = UDim.new(0, 4) boxCorner.Parent = triggerCheckbox local triggerLabel = Instance.new("TextLabel") triggerLabel.Size = UDim2.new(1, -25, 0, 20) triggerLabel.Position = UDim2.new(0, 25, 0, 0) triggerLabel.BackgroundTransparency = 1 triggerLabel.Text = "Включить Триггер" triggerLabel.TextColor3 = Color3.fromRGB(200, 200, 200) triggerLabel.TextSize = 13 triggerLabel.TextXAlignment = Enum.TextXAlignment.Left triggerLabel.Font = Enum.Font.GothamBlack triggerLabel.Parent = tabFrame triggerCheckbox.MouseButton1Click:Connect(function() settings.triggerEnabled = not settings.triggerEnabled triggerCheckbox.BackgroundColor3 = settings.triggerEnabled and Color3.fromRGB(0, 200, 100) or Color3.fromRGB(80, 80, 80) end) -- Режимы работы триггера local modes = {"По бинду", "Всегда", "Никогда"} for j, modeName in ipairs(modes) do local button = Instance.new("TextButton") button.Size = UDim2.new(1, 0, 0, 25) button.Position = UDim2.new(0, 0, 0, 30 + (j-1) * 30) button.BackgroundColor3 = settings.triggerMode == modeName and Color3.fromRGB(60, 120, 200) or Color3.fromRGB(40, 40, 50) button.TextColor3 = Color3.fromRGB(255, 255, 255) button.Text = modeName button.Font = Enum.Font.GothamBlack button.TextSize = 11 button.Parent = tabFrame button.MouseButton1Click:Connect(function() settings.triggerMode = modeName for _, btn in pairs(tabFrame:GetChildren()) do if btn:IsA("TextButton") and btn.Text == "По бинду" or btn.Text == "Всегда" or btn.Text == "Никогда" then btn.BackgroundColor3 = Color3.fromRGB(40, 40, 50) end end button.BackgroundColor3 = Color3.fromRGB(60, 120, 200) end) end -- Кнопка для выбора клавиши бинда local bindButton = Instance.new("TextButton") bindButton.Size = UDim2.new(1, 0, 0, 25) bindButton.Position = UDim2.new(0, 0, 0, 120) bindButton.BackgroundColor3 = Color3.fromRGB(60, 60, 70) bindButton.TextColor3 = Color3.fromRGB(255, 255, 255) bindButton.Text = "Клавиша бинда: " .. getKeyName(settings.triggerBindKey) bindButton.Font = Enum.Font.GothamBlack bindButton.TextSize = 11 bindButton.Parent = tabFrame bindButton.MouseButton1Click:Connect(function() changingBind = "trigger" bindButton.Text = "[Нажмите клавишу]" bindButton.BackgroundColor3 = Color3.fromRGB(100, 60, 60) end) -- end elseif tabName == "About" then local aboutFrame = Instance.new("Frame") aboutFrame.Size = UDim2.new(1, 0, 1, 0) aboutFrame.BackgroundTransparency = 1 aboutFrame.Parent = tabFrame local aboutText = Instance.new("TextLabel") aboutText.Size = UDim2.new(1, 0, 0, 180) aboutText.Position = UDim2.new(0, 0, 0, 0) aboutText.BackgroundTransparency = 1 aboutText.TextColor3 = Color3.fromRGB(200, 200, 200) aboutText.Text = [[Pi$daWare v2.1 Мультифункциональный чит: • ESP (Chams) • Аимбот с FOV кругом • Триггер бот Управление: • Insert - меню • F - быстрый триггер Режимы аимбота/триггера: • По бинду (удержание клавиши) • Всегда (постоянная работа) • Никогда (выключено) Автообновление ESP]] aboutText.Font = Enum.Font.GothamBlack aboutText.TextSize = 11 aboutText.TextWrapped = true aboutText.Parent = aboutFrame -- Кнопка Unload local unloadButton = Instance.new("TextButton") unloadButton.Size = UDim2.new(1, 0, 0, 35) unloadButton.Position = UDim2.new(0, 0, 0, 190) unloadButton.BackgroundColor3 = Color3.fromRGB(180, 50, 50) unloadButton.TextColor3 = Color3.fromRGB(255, 255, 255) unloadButton.Text = "UNLOAD" unloadButton.Font = Enum.Font.GothamBlack unloadButton.TextSize = 14 unloadButton.Parent = aboutFrame local unloadCorner = Instance.new("UICorner") unloadCorner.CornerRadius = UDim.new(0, 6) unloadCorner.Parent = unloadButton -- Функция выгрузки unloadButton.MouseButton1Click:Connect(function() -- Уведомление game:GetService("StarterGui"):SetCore("SendNotification", { Title = "Pi$daWare", Text = "Выгружается...", Duration = 2 }) -- Останавливаем все циклы if aimConnection then aimConnection:Disconnect() end if triggerConnection then triggerConnection:Disconnect() end -- Удаляем GUI if screenGui then screenGui:Destroy() end -- Удаляем FOV круг if fovCircle and fovCircle.Parent then fovCircle.Parent:Destroy() end -- Удаляем все чамсы for _, cham in pairs(chams) do if cham then cham:Destroy() end end -- Очищаем таблицы chams = {} -- Убираем меню из настроек settings.menuVisible = false -- Уведомление о выгрузке task.wait(0.5) game:GetService("StarterGui"):SetCore("SendNotification", { Title = "Pi$daWare", Text = "Успешно выгружен!", Duration = 3 }) print("=== Pi$daWare Unloaded ===") end) end end -- ====================== Основные обработчики ====================== UIS.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end -- Обработка смены бинда if changingBind and input.UserInputType == Enum.UserInputType.Keyboard then if changingBind == "trigger" then settings.triggerBindKey = input.KeyCode -- Обновляем текст кнопки в интерфейсе local triggerTab = tabFrames["Trigger"] if triggerTab then for _, child in pairs(triggerTab:GetChildren()) do if child:IsA("TextButton") and child.Text:find("Клавиша бинда") then child.Text = "Клавиша бинда: " .. getKeyName(input.KeyCode) child.BackgroundColor3 = Color3.fromRGB(60, 60, 70) end end end elseif changingBind == "aimbot" then settings.aimbotBindKey = input.KeyCode -- Обновляем текст кнопки в интерфейсе local aimbotTab = tabFrames["Aimbot"] if aimbotTab then for _, child in pairs(aimbotTab:GetChildren()) do if child:IsA("TextButton") and child.Text:find("Клавиша бинда") then child.Text = "Клавиша бинда: " .. getKeyName(input.KeyCode) child.BackgroundColor3 = Color3.fromRGB(60, 60, 70) end end end end changingBind = false return end -- Открытие/закрытие меню if input.KeyCode == Enum.KeyCode.Insert then settings.menuVisible = not settings.menuVisible mainFrame.Visible = settings.menuVisible if settings.menuVisible then mainFrame.BackgroundTransparency = 1 local tween = TweenService:Create(mainFrame, TweenInfo.new(0.2), {BackgroundTransparency = 0}) tween:Play() end end -- Быстрое включение/выключение триггера if input.KeyCode == Enum.KeyCode.F then settings.triggerEnabled = not settings.triggerEnabled -- Обновляем чекбокс в GUI local triggerTab = tabFrames["Trigger"] if triggerTab then for _, child in pairs(triggerTab:GetChildren()) do if child:IsA("TextButton") and child.Text == "" then -- Это чекбокс child.BackgroundColor3 = settings.triggerEnabled and Color3.fromRGB(0, 200, 100) or Color3.fromRGB(80, 80, 80) end end end end end) -- ====================== Основные циклы ====================== -- Триггер цикл RunService.RenderStepped:Connect(function() if shouldClick() then local target = mouse.Target if target and target.Parent then local humanoid = target.Parent:FindFirstChild("Humanoid") local character = target.Parent if not humanoid and character.Parent then humanoid = character.Parent:FindFirstChild("Humanoid") if humanoid then character = character.Parent end end if humanoid and character ~= player.Character then mouse1press() task.wait(0.05) mouse1release() end end end end) -- Аимбот цикл RunService.RenderStepped:Connect(fovAim) -- ESP инициализация Players.PlayerAdded:Connect(function(p) task.wait(1) if settings.espEnabled then createChams(p) end end) Players.PlayerRemoving:Connect(function(p) removeChams(p) end) -- Инициализация task.wait(1) if settings.espEnabled then for _, p in pairs(Players:GetPlayers()) do if p ~= player then createChams(p) end end end if settings.aimbotShowFOV then createFOVCircle() end -- ====================== Автоматическое обновление ESP для новых игроков ====================== local function setupPlayerTracking() -- Обработка новых игроков Players.PlayerAdded:Connect(function(player) task.wait(0.5) -- Даем время на загрузку персонажа if settings.espEnabled and player ~= player then createChams(player) print("[ESP] Добавлен игрок:", player.Name) end end) -- Обработка ушедших игроков Players.PlayerRemoving:Connect(function(player) if chams[player] then removeChams(player) print("[ESP] Удален игрок:", player.Name) end end) end -- Инициализация отслеживания игроков setupPlayerTracking() -- Переинициализация ESP для всех текущих игроков (исправление) task.spawn(function() task.wait(1) updateAllChams() end) -- Уведомление game:GetService("StarterGui"):SetCore("SendNotification", { Title = "Pi$daWare v2.1", Text = "Загружен! Insert - меню, F - триггер", Duration = 5 }) print("=== Pi$daWare v2.1 Loaded ===") print("Insert - меню | F - триггер")