--[[ ======================================================================================= 📜 WINS FARM SCRIPT 👤 Created by: Soner1x / SashaUlyda2014-png 📅 Version: 1.2 🔒 Status: Undetected / Safe ======================================================================================= --]] local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local CoreGui = game:GetService("CoreGui") local UserInputService = game:GetService("UserInputService") local VirtualUser = game:GetService("VirtualUser") local player = Players.LocalPlayer local farmEnabled = false local antiAfkEnabled = false local antiAfkConnection = nil local menuVisible = true -- Координаты local waypoints = { Vector3.new(-1457, -161, -913), Vector3.new(-1465, -160, -938), Vector3.new(-1483, -135, -764), Vector3.new(-1476, -87, -591), Vector3.new(-1465, -62, -414), Vector3.new(-1464, -57, -255), Vector3.new(-1461, -90, -122), Vector3.new(-1482, -56, -16) } -- Функция для настройки перетаскивания local function makeDraggable(frame) local dragging, dragInput, dragStart, startPos frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) frame.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) end -- Удаление старой версии if CoreGui:FindFirstChild("BeautifulBlueGui") then CoreGui.BeautifulBlueGui:Destroy() end -- СОЗДАНИЕ ИНТЕРФЕЙСА local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "BeautifulBlueGui" ScreenGui.Parent = CoreGui ScreenGui.ResetOnSpawn = false ---------------------------------------------------------------- -- 0. ОКНО ПРЕДУПРЕЖДЕНИЯ (ПОЯВЛЯЕТСЯ ПЕРВЫМ) ---------------------------------------------------------------- local NoticeFrame = Instance.new("Frame") NoticeFrame.Name = "NoticeFrame" NoticeFrame.Parent = ScreenGui NoticeFrame.Size = UDim2.new(0, 320, 0, 220) NoticeFrame.Position = UDim2.new(0.5, -160, 0.4, -110) -- По центру экрана NoticeFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 30) -- Темный красивый фон NoticeFrame.Active = true makeDraggable(NoticeFrame) local NoticeCorner = Instance.new("UICorner") NoticeCorner.CornerRadius = UDim.new(0, 12) NoticeCorner.Parent = NoticeFrame -- Обводка для окна local NoticeStroke = Instance.new("UIStroke") NoticeStroke.Color = Color3.fromRGB(0, 102, 204) NoticeStroke.Thickness = 2 NoticeStroke.Parent = NoticeFrame -- Заголовок предупреждения local NoticeTitle = Instance.new("TextLabel") NoticeTitle.Parent = NoticeFrame NoticeTitle.Size = UDim2.new(1, 0, 0, 35) NoticeTitle.BackgroundTransparency = 1 NoticeTitle.Text = "⚠️ OFFICIAL NOTICE ⚠️" NoticeTitle.TextColor3 = Color3.fromRGB(255, 75, 75) -- Красный текст NoticeTitle.TextSize = 16 NoticeTitle.Font = Enum.Font.GothamBlack -- Текст предупреждения (на английском, чтобы все понимали) local NoticeText = Instance.new("TextLabel") NoticeText.Parent = NoticeFrame NoticeText.Size = UDim2.new(1, -20, 0, 110) NoticeText.Position = UDim2.new(0, 10, 0, 40) NoticeText.BackgroundTransparency = 1 NoticeText.Text = "This script is officially published ONLY on ScriptRB and GitHub (SashaUlyda2014-png).\n\nIf you see or downloaded it from any other website, it is STOLEN by scammers!" NoticeText.TextColor3 = Color3.fromRGB(230, 230, 230) NoticeText.TextSize = 13 NoticeText.Font = Enum.Font.GothamMedium NoticeText.TextWrapped = true -- КНОПКА СТАРТ local StartButton = Instance.new("TextButton") StartButton.Name = "StartButton" StartButton.Parent = NoticeFrame StartButton.Size = UDim2.new(0, 140, 0, 40) StartButton.Position = UDim2.new(0.5, -70, 1, -55) StartButton.BackgroundColor3 = Color3.fromRGB(0, 102, 204) -- Синяя кнопка StartButton.Text = "START" StartButton.TextColor3 = Color3.fromRGB(255, 255, 255) StartButton.TextSize = 16 StartButton.Font = Enum.Font.GothamBlack local StartCorner = Instance.new("UICorner") StartCorner.CornerRadius = UDim.new(0, 8) StartCorner.Parent = StartButton ---------------------------------------------------------------- -- ПОДГОТОВКА ОСНОВНОГО МЕНЮ (ИЗНАЧАЛЬНО СКРЫТО) ---------------------------------------------------------------- -- 1. КВАДРАТИК-ВОТЕРМАРК local WatermarkButton = Instance.new("TextButton") WatermarkButton.Name = "WatermarkButton" WatermarkButton.Parent = ScreenGui WatermarkButton.Size = UDim2.new(0, 100, 0, 35) WatermarkButton.Position = UDim2.new(0.05, 0, 0.28, 0) WatermarkButton.BackgroundColor3 = Color3.fromRGB(0, 102, 204) WatermarkButton.Text = "Soner1x" WatermarkButton.TextColor3 = Color3.fromRGB(255, 255, 255) WatermarkButton.TextSize = 14 WatermarkButton.Font = Enum.Font.GothamBlack WatermarkButton.AutoButtonColor = false WatermarkButton.Visible = false -- Скрыто до нажатия Start makeDraggable(WatermarkButton) local WMCorner = Instance.new("UICorner") WMCorner.CornerRadius = UDim.new(0, 6) WMCorner.Parent = WatermarkButton -- 2. ГЛАВНОЕ МЕНЮ local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Parent = ScreenGui MainFrame.Size = UDim2.new(0, 220, 0, 175) MainFrame.Position = UDim2.new(0.05, 0, 0.35, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) MainFrame.Active = true MainFrame.Visible = false -- Скрыто до нажатия Start makeDraggable(MainFrame) local MainCorner = Instance.new("UICorner") MainCorner.CornerRadius = UDim.new(0, 12) MainCorner.Parent = MainFrame -- Синяя шапка local HeaderFrame = Instance.new("Frame") HeaderFrame.Name = "HeaderFrame" HeaderFrame.Parent = MainFrame HeaderFrame.Size = UDim2.new(1, 0, 0, 40) HeaderFrame.BackgroundColor3 = Color3.fromRGB(0, 102, 204) local HeaderCorner = Instance.new("UICorner") HeaderCorner.CornerRadius = UDim.new(0, 12) HeaderCorner.Parent = HeaderFrame local HeaderFix = Instance.new("Frame") HeaderFix.Size = UDim2.new(1, 0, 0, 10) HeaderFix.Position = UDim2.new(0, 0, 0, 30) HeaderFix.BackgroundColor3 = Color3.fromRGB(0, 102, 204) HeaderFix.BorderSizePixel = 0 HeaderFix.Parent = HeaderFrame -- Название меню local TitleLabel = Instance.new("TextLabel") TitleLabel.Parent = HeaderFrame TitleLabel.Size = UDim2.new(0, 150, 1, 0) TitleLabel.Position = UDim2.new(0, 12, 0, 0) TitleLabel.BackgroundTransparency = 1 TitleLabel.Text = "WINS FARM" TitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) TitleLabel.TextSize = 15 TitleLabel.Font = Enum.Font.GothamBlack TitleLabel.TextXAlignment = Enum.TextXAlignment.Left -- КРАСНАЯ КНОПКА ПОЛНОГО УДАЛЕНИЯ (X) local CloseButton = Instance.new("TextButton") CloseButton.Name = "CloseButton" CloseButton.Parent = HeaderFrame CloseButton.Size = UDim2.new(0, 26, 0, 26) CloseButton.Position = UDim2.new(1, -33, 0.5, -13) CloseButton.BackgroundColor3 = Color3.fromRGB(231, 76, 60) CloseButton.Text = "×" CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255) CloseButton.TextSize = 20 CloseButton.Font = Enum.Font.GothamBold local CBCorner = Instance.new("UICorner") CBCorner.CornerRadius = UDim.new(0, 6) CBCorner.Parent = CloseButton CloseButton.MouseButton1Click:Connect(function() farmEnabled = false antiAfkEnabled = false if antiAfkConnection then antiAfkConnection:Disconnect() end ScreenGui:Destroy() end) -- КНОПКА 1: Auto Farm local ToggleButton = Instance.new("TextButton") ToggleButton.Name = "ToggleButton" ToggleButton.Parent = MainFrame ToggleButton.Size = UDim2.new(0, 180, 0, 42) ToggleButton.Position = UDim2.new(0.5, -90, 0, 58) ToggleButton.BackgroundColor3 = Color3.fromRGB(0, 122, 255) ToggleButton.Text = "Auto Farm: OFF" ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleButton.TextSize = 14 ToggleButton.Font = Enum.Font.GothamBold local ButtonCorner = Instance.new("UICorner") ButtonCorner.CornerRadius = UDim.new(0, 8) ButtonCorner.Parent = ToggleButton -- КНОПКА 2: Anti AFK local AntiAfkButton = Instance.new("TextButton") AntiAfkButton.Name = "AntiAfkButton" AntiAfkButton.Parent = MainFrame AntiAfkButton.Size = UDim2.new(0, 180, 0, 42) AntiAfkButton.Position = UDim2.new(0.5, -90, 0, 112) AntiAfkButton.BackgroundColor3 = Color3.fromRGB(0, 122, 255) AntiAfkButton.Text = "Anti AFK: OFF" AntiAfkButton.TextColor3 = Color3.fromRGB(255, 255, 255) AntiAfkButton.TextSize = 14 AntiAfkButton.Font = Enum.Font.GothamBold local AntiAfkCorner = Instance.new("UICorner") AntiAfkCorner.CornerRadius = UDim.new(0, 8) AntiAfkCorner.Parent = AntiAfkButton ---------------------------------------------------------------- -- ЛОГИКА НАЖАТИЯ НА КНОПКУ START (КЛЮЧЕВОЙ МОМЕНТ) ---------------------------------------------------------------- StartButton.MouseButton1Click:Connect(function() NoticeFrame:Destroy() -- Полностью удаляем окно предупреждения WatermarkButton.Visible = true -- Показываем вотермарк с ником MainFrame.Visible = true -- Открываем основное хак-меню end) ---------------------------------------------------------------- -- ОСТАЛЬНАЯ ЛОГИКА СУЩЕСТВУЮЩЕГО СКРИПТА ---------------------------------------------------------------- WatermarkButton.MouseButton1Click:Connect(function() menuVisible = not menuVisible MainFrame.Visible = menuVisible if menuVisible then WatermarkButton.BackgroundTransparency = 0 else WatermarkButton.BackgroundTransparency = 0.3 end end) local function startTweenFarm() while farmEnabled do local character = player.Character local rootPart = character and character:FindFirstChild("HumanoidRootPart") if rootPart then for i, targetPos in ipairs(waypoints) do if not farmEnabled then break end local distance = (rootPart.Position - targetPos).Magnitude local speed = 220 local duration = distance / speed local tweenInfo = TweenInfo.new(duration, Enum.EasingStyle.Linear) local tween = TweenService:Create(rootPart, tweenInfo, {CFrame = CFrame.new(targetPos)}) tween:Play() tween.Completed:Wait() end if farmEnabled then task.wait(0.8) repeat task.wait(0.1) until not farmEnabled or (rootPart.Position.Z < -800) end else task.wait(0.5) end task.wait(0.1) end end ToggleButton.MouseButton1Click:Connect(function() farmEnabled = not farmEnabled if farmEnabled then TweenService:Create(ToggleButton, TweenInfo.new(0.3), {BackgroundColor3 = Color3.fromRGB(46, 204, 113)}):Play() ToggleButton.Text = "Auto Farm: ON" task.spawn(startTweenFarm) else TweenService:Create(ToggleButton, TweenInfo.new(0.3), {BackgroundColor3 = Color3.fromRGB(0, 122, 255)}):Play() ToggleButton.Text = "Auto Farm: OFF" end end) AntiAfkButton.MouseButton1Click:Connect(function() antiAfkEnabled = not antiAfkEnabled if antiAfkEnabled then TweenService:Create(AntiAfkButton, TweenInfo.new(0.3), {BackgroundColor3 = Color3.fromRGB(46, 204, 113)}):Play() AntiAfkButton.Text = "Anti AFK: ON" antiAfkConnection = player.Idled:Connect(function() VirtualUser:Button2Down(Vector2.new(0,0), workspace.CurrentCamera.CFrame) task.wait(0.5) VirtualUser:Button2Up(Vector2.new(0,0), workspace.CurrentCamera.CFrame) end) else TweenService:Create(AntiAfkButton, TweenInfo.new(0.3), {BackgroundColor3 = Color3.fromRGB(0, 122, 255)}):Play() AntiAfkButton.Text = "Anti AFK: OFF" if antiAfkConnection then antiAfkConnection:Disconnect() antiAfkConnection = nil end end end)