local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local Lighting = game:GetService("Lighting") local Workspace = game:GetService("Workspace") local TweenService = game:GetService("TweenService") local HttpService = game:GetService("HttpService") local player = Players.LocalPlayer local function safeTime() local ok, t = pcall(function() return os.time() end) return (ok and type(t) == "number") and t or 0 end -- Таблица выданных ключей (можете вставить сюда блок из панели «Копировать для Lua») -- expiresAt = 0 означает «Навсегда» local ISSUED_KEYS = { ["VIP-KEY"] = { expiresAt = 0, oneTime = false, used = false }, } local USED_FILE = "IssuedKeys_Used_v7.json" local usedKeys = {} pcall(function() if type(isfile) == "function" and type(readfile) == "function" and isfile(USED_FILE) then local raw = readfile(USED_FILE) if type(raw) == "string" and raw ~= "" then local dec = HttpService:JSONDecode(raw) if type(dec) == "table" then usedKeys = dec end end end end) local function markKeyUsed(key) usedKeys[key] = true pcall(function() if type(writefile) == "function" then writefile(USED_FILE, HttpService:JSONEncode(usedKeys)) end end) end -- Тарифы: FREE (бесплатная версия) и PAID (платная версия) local isPaid = false local activeKey = nil local activeExpiresAt = 0 local FREE_LIMITS = { maxContraband = 2, maxSpeed = 95, allowLaunder = true, allowFpsBoost = false, allowEsp = false, } local PAID_LIMITS = { maxContraband = 10, maxSpeed = 220, allowLaunder = true, allowFpsBoost = true, allowEsp = true, } local function getLimits() if isPaid then local now = safeTime() if activeExpiresAt > 0 and now > 0 and now >= activeExpiresAt then isPaid = false activeKey = nil activeExpiresAt = 0 return FREE_LIMITS end return PAID_LIMITS end return FREE_LIMITS end -- Проверка ключа: не выдаёт ложную ошибку «меня нет в системе» -- Принимает ключи из ISSUED_KEYS и ключи в формате KEY-... / VIP-... / PRO-... local function verifyAndActivateKey(raw) local key = tostring(raw or ""):gsub("^%s+", ""):gsub("%s+$", ""):upper() if key == "" then return false, "Введите ключ в строку" end local entry = ISSUED_KEYS[key] if type(entry) == "table" then local exp = tonumber(entry.expiresAt) or 0 local now = safeTime() if exp > 0 and now > 0 and now >= exp then return false, "Срок действия ключа истёк" end if entry.oneTime == true and (entry.used == true or usedKeys[key] == true) then return false, "Одноразовый ключ уже активирован" end if entry.oneTime == true then entry.used = true markKeyUsed(key) end isPaid = true activeKey = key activeExpiresAt = exp return true, "Ключ проверен — запуск PAID" end -- Поддержка ключей, выданных в панели (формат KEY-XXXX..., VIP-..., PRO-...) if string.match(key, "^KEY%-[A-Z0-9]+$") or string.match(key, "^VIP%-[A-Z0-9]+$") or string.match(key, "^PRO%-[A-Z0-9]+$") then if usedKeys[key] == true then return false, "Этот ключ уже использован" end isPaid = true activeKey = key activeExpiresAt = 0 return true, "Ключ проверен — запуск PAID" end return false, "Неверный формат ключа (пример: KEY-1234ABCD или VIP-KEY)" end local farming = false local fpsBoostEnabled = false local espEnabled = true local espFolder = nil local contrabandAmount = 1 local carSpeed = 75 local currentStepText = "Ожидание запуска" local completedCycles = 0 local guiRefs = {} local exitCarPos = Vector3.new(5992.05, 97.64, 765.73) local contrabandPos = Vector3.new(5990.50, 97.64, 804.14) local carAfterContraband = Vector3.new(5992.05, 97.64, 765.73) local stopPos = Vector3.new(-136.64, 17.45, 516.38) local buyerExactPos = Vector3.new(-49.63, 51.20, 454.13) local moneyLaunderCarPos = Vector3.new(5925.95, 97.64, 767.64) local moneyLaunderNPC = Vector3.new(5931.92, 97.67, 802.98) local bridgeTurnStart = Vector3.new(5723.90, 97.03, 606.45) local bridgeTurnEnd = Vector3.new(5045.87, 38.59, 280.97) local bridgeSecondStart = Vector3.new(4930.43, 23.33, 182.42) local bridgeSecondEnd = Vector3.new(4306.54, 18.53, 102.18) local roadToStop = { Vector3.new(5992.05, 97.64, 765.73), Vector3.new(5987.52, 97.95, 615.70), bridgeTurnStart, bridgeTurnEnd, bridgeSecondStart, bridgeSecondEnd, Vector3.new(326.61, 17.45, 115.90), Vector3.new(317.47, 17.45, 357.25), Vector3.new(-128.06, 17.45, 361.13), Vector3.new(-136.64, 17.45, 516.38), } local roadFromStopToLaunder = { Vector3.new(-136.64, 17.45, 516.38), Vector3.new(-128.06, 17.45, 361.13), Vector3.new(317.47, 17.45, 357.25), Vector3.new(326.61, 17.45, 115.90), bridgeSecondEnd, bridgeSecondStart, bridgeTurnEnd, bridgeTurnStart, Vector3.new(5987.52, 97.95, 615.70), Vector3.new(5925.95, 97.64, 767.64), } local roadWaypointsBack = { Vector3.new(5925.95, 97.64, 767.64), Vector3.new(5992.05, 97.64, 765.73), } local turnSegments = { [3] = true, [4] = true, [5] = true } local reverseTightIndices = { [5] = true, [6] = true, [7] = true } local function getChar() if not player then return nil, nil, nil end local char = player.Character if not char or not char.Parent then return nil, nil, nil end local hrp = char:FindFirstChild("HumanoidRootPart") local hum = char:FindFirstChildOfClass("Humanoid") if not hrp or not hum or hum.Health <= 0 then return char, hrp, hum end return char, hrp, hum end local function setStep(text) currentStepText = tostring(text or "") if guiRefs.stepLabel and guiRefs.stepLabel.Parent then pcall(function() guiRefs.stepLabel.Text = "Этап: " .. currentStepText end) end end local function getFocusOrigin() local _, hrp = getChar() if hrp then return hrp.Position end local cam = Workspace.CurrentCamera return (cam and cam.CFrame.Position) or Vector3.zero end local function lerp(a, b, t) return a + (b - a) * t end local function generatePoints(p1, p2, count) local pts = {} for i = 1, count do local t = i / count pts[#pts + 1] = Vector3.new(lerp(p1.X, p2.X, t), lerp(p1.Y, p2.Y, t), lerp(p1.Z, p2.Z, t)) end return pts end local function buildDirectRoute(waypoints, tightIndices) local route = {} for i = 1, #waypoints - 1 do local p1, p2 = waypoints[i], waypoints[i + 1] local dist = (p2 - p1).Magnitude local isTight = tightIndices and tightIndices[i] local spacing = isTight and 15 or 55 local count = math.max(2, math.floor(dist / spacing)) for _, pt in ipairs(generatePoints(p1, p2, count)) do route[#route + 1] = pt end end return route end local driveToStop = buildDirectRoute(roadToStop, turnSegments) local driveFromStopToLaunder = buildDirectRoute(roadFromStopToLaunder, reverseTightIndices) local driveBack = buildDirectRoute(roadWaypointsBack, nil) local optimizedSet = setmetatable({}, { __mode = "k" }) local cityPropsCache = {} local citySweepRunning = false local function isProtectedObject(obj) if espFolder and (obj == espFolder or obj:IsDescendantOf(espFolder)) then return true end local char = player and player.Character if char and (obj == char or obj:IsDescendantOf(char)) then return true end return false end local function optimizeSingleObject(obj) if not obj or not obj.Parent or optimizedSet[obj] or isProtectedObject(obj) then return end optimizedSet[obj] = true if obj:IsA("BasePart") then obj.CastShadow = false obj.Reflectance = 0 if not obj:IsA("Terrain") and not obj:FindFirstChildOfClass("SurfaceAppearance") then obj.Material = Enum.Material.SmoothPlastic end local isVehiclePart = obj:FindFirstAncestorWhichIsA("VehicleSeat") ~= nil local isSmallProp = not obj:IsA("Terrain") and not isVehiclePart and (obj.Size.Magnitude < 14) if isSmallProp then cityPropsCache[#cityPropsCache + 1] = obj end elseif obj:IsA("Decal") or obj:IsA("Texture") then obj.Transparency = 1 elseif obj:IsA("SurfaceAppearance") then obj.Color = Color3.new(1, 1, 1) elseif obj:IsA("ParticleEmitter") or obj:IsA("Trail") or obj:IsA("Smoke") or obj:IsA("Fire") or obj:IsA("Sparkles") or obj:IsA("Beam") then obj.Enabled = false elseif obj:IsA("PointLight") or obj:IsA("SpotLight") or obj:IsA("SurfaceLight") then obj.Enabled = false elseif obj:IsA("Highlight") then obj.Enabled = false end end local function runCityCullingPass() local origin = getFocusOrigin() local maxActiveDist = 260 local checked = 0 local idx = 1 while idx <= #cityPropsCache do local part = cityPropsCache[idx] if not part or not part.Parent then table.remove(cityPropsCache, idx) else local dist = (part.Position - origin).Magnitude local shouldHide = dist > maxActiveDist pcall(function() if shouldHide then if part.LocalTransparencyModifier < 0.95 then part.LocalTransparencyModifier = 0.95 end else if part.LocalTransparencyModifier > 0 then part.LocalTransparencyModifier = 0 end end end) idx = idx + 1 end checked = checked + 1 if checked % 450 == 0 then task.wait() end end end local function startCityCullingLoop() if citySweepRunning then return end citySweepRunning = true task.spawn(function() while fpsBoostEnabled do pcall(runCityCullingPass) task.wait(0.85) end for _, part in ipairs(cityPropsCache) do if part and part.Parent then pcall(function() part.LocalTransparencyModifier = 0 end) end end citySweepRunning = false end) end local function applyFPSBoost() local limits = getLimits() if not limits.allowFpsBoost then return false, "Доступно только в платной версии" end if fpsBoostEnabled then pcall(runCityCullingPass) return true, "FPS оптимизирован" end fpsBoostEnabled = true pcall(function() settings().Rendering.QualityLevel = Enum.QualityLevel.Level01 settings().Rendering.MeshPartDetailLevel = Enum.MeshPartDetailLevel.DistanceBased end) pcall(function() Lighting.GlobalShadows = false Lighting.FogEnd = 9e9 Lighting.Brightness = 1.2 Lighting.EnvironmentSpecularScale = 0 Lighting.EnvironmentDiffuseScale = 0 for _, v in ipairs(Lighting:GetChildren()) do if v:IsA("PostEffect") or v:IsA("Atmosphere") or v:IsA("Clouds") then v.Enabled = false end end end) pcall(function() local terrain = Workspace:FindFirstChildOfClass("Terrain") if terrain then terrain.Decoration = false terrain.WaterWaveSize = 0 terrain.WaterWaveSpeed = 0 terrain.WaterReflectance = 0 terrain.WaterTransparency = 0.2 end end) startCityCullingLoop() task.spawn(function() local count = 0 for _, obj in ipairs(Workspace:GetDescendants()) do if not fpsBoostEnabled then break end pcall(optimizeSingleObject, obj) count = count + 1 if count % 850 == 0 then task.wait() end end Workspace.DescendantAdded:Connect(function(newObj) if fpsBoostEnabled then task.defer(function() pcall(optimizeSingleObject, newObj) end) end end) end) return true, "FPS оптимизирован" end local espPoints = {} for _, p in ipairs(generatePoints(exitCarPos, contrabandPos, 2)) do espPoints[#espPoints + 1] = p end for _, p in ipairs(driveToStop) do espPoints[#espPoints + 1] = p end espPoints[#espPoints + 1] = stopPos espPoints[#espPoints + 1] = buyerExactPos for _, p in ipairs(driveFromStopToLaunder) do espPoints[#espPoints + 1] = p end for _, p in ipairs(generatePoints(moneyLaunderCarPos, moneyLaunderNPC, 2)) do espPoints[#espPoints + 1] = p end for _, p in ipairs(driveBack) do espPoints[#espPoints + 1] = p end local function removeESP() if espFolder then pcall(function() espFolder:Destroy() end) espFolder = nil end end local function createESP() removeESP() local limits = getLimits() if not espEnabled or not limits.allowEsp then return end espFolder = Instance.new("Folder") espFolder.Name = "FarmRouteESP" espFolder.Parent = Workspace for i = 1, #espPoints - 2, 2 do local p1, p2 = espPoints[i], espPoints[i + 2] local dist = (p2 - p1).Magnitude if dist > 1 then local line = Instance.new("Part") line.Anchored = true; line.CanCollide = false; line.CanQuery = false; line.CastShadow = false line.Material = Enum.Material.Neon; line.Color = Color3.fromRGB(0, 255, 145) line.Transparency = 0.45; line.Size = Vector3.new(0.35, 0.35, dist) line.CFrame = CFrame.new((p1 + p2) / 2, p2) line.Parent = espFolder end end local keyPoints = { {pos = exitCarPos, color = Color3.fromRGB(255, 225, 70)}, {pos = contrabandPos, color = Color3.fromRGB(255, 95, 110)}, {pos = bridgeTurnStart, color = Color3.fromRGB(255, 180, 50)}, {pos = bridgeTurnEnd, color = Color3.fromRGB(255, 180, 50)}, {pos = bridgeSecondStart, color = Color3.fromRGB(255, 180, 50)}, {pos = bridgeSecondEnd, color = Color3.fromRGB(255, 180, 50)}, {pos = stopPos, color = Color3.fromRGB(255, 165, 60)}, {pos = buyerExactPos, color = Color3.fromRGB(95, 255, 140)}, {pos = moneyLaunderCarPos, color = Color3.fromRGB(80, 200, 255)}, {pos = moneyLaunderNPC, color = Color3.fromRGB(145, 120, 255)}, } for _, kp in ipairs(keyPoints) do local marker = Instance.new("Part") marker.Anchored = true; marker.CanCollide = false; marker.CanQuery = false; marker.CastShadow = false marker.Material = Enum.Material.Neon; marker.Color = kp.color marker.Transparency = 0.25; marker.Size = Vector3.new(3.6, 3.6, 3.6) marker.CFrame = CFrame.new(kp.pos); marker.Shape = Enum.PartType.Ball marker.Parent = espFolder end end local hexCodes = { E = 0x45, F = 0x46, Space = 0x20 } local function rawPress(code) if not code then return end pcall(function() if type(keypress) == "function" then keypress(code) end end) end local function rawRelease(code) if not code then return end pcall(function() if type(keyrelease) == "function" then keyrelease(code) end end) end local function pressKey(letter, holdTime) local code = hexCodes[letter] if not code then return end rawPress(code) task.wait(holdTime or 0.1) rawRelease(code) end local cachedSeat = nil local function isInCar() local _, _, hum = getChar() if not hum then return false end if hum.SeatPart then cachedSeat = hum.SeatPart; return true end if cachedSeat and cachedSeat.Parent and cachedSeat.Occupant == hum then return true end return false end local function getCurrentSeat() local _, _, hum = getChar() if not hum then return nil end if hum.SeatPart then cachedSeat = hum.SeatPart; return hum.SeatPart end if cachedSeat and cachedSeat.Parent and cachedSeat.Occupant == hum then return cachedSeat end return nil end local function findNearestCar(targetPos) local _, hrp = getChar() local searchCenter = targetPos or (hrp and hrp.Position) if not searchCenter then return nil end local closest, closestDist local vehicles = Workspace:FindFirstChild("Vehicles") local containers = {} if vehicles then table.insert(containers, vehicles) else for _, child in ipairs(Workspace:GetChildren()) do if child:IsA("Model") or child:IsA("Folder") then local okPivot, pivot = pcall(function() return child:GetPivot() end) if not okPivot or (pivot.Position - searchCenter).Magnitude < 110 then table.insert(containers, child) end end end end for _, folder in ipairs(containers) do for _, v in ipairs(folder:GetDescendants()) do if v:IsA("VehicleSeat") and v.Occupant == nil then local distToTarget = (not targetPos) or ((v.Position - targetPos).Magnitude < 30) if distToTarget then local refPos = hrp and hrp.Position or targetPos local dist = (v.Position - refPos).Magnitude if not closestDist or dist < closestDist then closest, closestDist = v, dist end end end end end return closest end local function getCarModel() local seat = getCurrentSeat() if not seat or not seat.Parent then return nil, nil end local car = seat.Parent while car and car ~= Workspace do if car:IsA("Model") then break end car = car.Parent end if not car or car == Workspace then car = seat.Parent end local carPart = car:FindFirstChild("DriveSeat") or car:FindFirstChild("HumanoidRootPart") or car:FindFirstChild("Body") or car:FindFirstChild("Chassis") or car.PrimaryPart or seat return car, carPart end local function stopCar() local _, carPart = getCarModel() if carPart then pcall(function() carPart.AssemblyLinearVelocity = Vector3.new(0, math.clamp(carPart.AssemblyLinearVelocity.Y, -20, 20), 0) carPart.AssemblyAngularVelocity = Vector3.zero end) end local seat = getCurrentSeat() if seat then pcall(function() seat.Throttle = 0; seat.Steer = 0 end) end end local function protectCar(car, carPart) if not car or not carPart then return end pcall(function() local angVel = carPart.AssemblyAngularVelocity if angVel.Magnitude > 5 then carPart.AssemblyAngularVelocity = Vector3.new( math.clamp(angVel.X, -2, 2), math.clamp(angVel.Y, -5, 5), math.clamp(angVel.Z, -2, 2) ) end local upDot = carPart.CFrame.UpVector:Dot(Vector3.new(0, 1, 0)) if upDot < 0.35 then local pos = carPart.Position local look = carPart.CFrame.LookVector local flatLook = Vector3.new(look.X, 0, look.Z) if flatLook.Magnitude < 0.05 then flatLook = Vector3.new(0, 0, -1) end flatLook = flatLook.Unit local cleanCF = CFrame.lookAt(pos + Vector3.new(0, 1.5, 0), pos + Vector3.new(0, 1.5, 0) + flatLook, Vector3.new(0, 1, 0)) car:PivotTo(cleanCF) carPart.AssemblyLinearVelocity = Vector3.new(flatLook.X * 40, 0, flatLook.Z * 40) carPart.AssemblyAngularVelocity = Vector3.zero end end) end local originalCollisions = {} local cachedParts = {} local collisionEnforcerActive = false local function getAllParts(model) local parts = {} if not model then return parts end for _, item in ipairs(model:GetDescendants()) do if item:IsA("BasePart") then parts[#parts + 1] = item end end return parts end local function disableCollisionNow() cachedParts = {} local car, _ = getCarModel() if car then for _, part in ipairs(getAllParts(car)) do if originalCollisions[part] == nil then originalCollisions[part] = part.CanCollide end part.CanCollide = false cachedParts[#cachedParts + 1] = part end end local char = getChar() if char then for _, part in ipairs(getAllParts(char)) do if originalCollisions[part] == nil then originalCollisions[part] = part.CanCollide end part.CanCollide = false cachedParts[#cachedParts + 1] = part end end end local function reDisableCollision() for _, part in ipairs(cachedParts) do if part and part.Parent and part.CanCollide then part.CanCollide = false end end end local function enableAllCollision() for part, orig in pairs(originalCollisions) do if part and part.Parent then part.CanCollide = orig end end originalCollisions = {} cachedParts = {} end local function startCollisionEnforcer() if collisionEnforcerActive then return end collisionEnforcerActive = true disableCollisionNow() task.spawn(function() local rescanTimer = 0 while farming and collisionEnforcerActive do rescanTimer = rescanTimer + 1 if rescanTimer >= 12 then disableCollisionNow() rescanTimer = 0 else reDisableCollision() end task.wait(0.08) end collisionEnforcerActive = false end) end local function stopCollisionEnforcer() collisionEnforcerActive = false enableAllCollision() end local function walkTo(targetPos, timeout) timeout = timeout or 20 local startTime = tick() local speed = 16 while tick() - startTime < timeout and farming do local dt = RunService.Heartbeat:Wait() local char, hrp, hum = getChar() if not char or not hrp then break end local flatPos = Vector3.new(hrp.Position.X, 0, hrp.Position.Z) local flatTarget = Vector3.new(targetPos.X, 0, targetPos.Z) local dist = (flatPos - flatTarget).Magnitude if dist < 3 then break end local dir = (flatTarget - flatPos).Unit local step = math.min(speed * dt, dist) local newPos = hrp.Position + Vector3.new(dir.X * step, 0, dir.Z * step) local lookAt = Vector3.new(targetPos.X, hrp.Position.Y, targetPos.Z) pcall(function() char:PivotTo(CFrame.new(newPos, lookAt)) end) if hum then pcall(function() hum:MoveTo(targetPos) end) end end end local function teleportTo(pos) if not farming then return false end local char, hrp = getChar() if not char or not hrp then return false end pcall(function() player:RequestStreamAroundAsync(pos) end) for _ = 1, 3 do if not farming then return false end pcall(function() hrp.AssemblyLinearVelocity = Vector3.zero char:PivotTo(CFrame.new(pos + Vector3.new(0, 1, 0))) end) task.wait(0.16) char, hrp = getChar() if char and hrp and (hrp.Position - pos).Magnitude < 10 then return true end end return true end local function driveThroughPoints(points, timeoutPerPoint) timeoutPerPoint = timeoutPerPoint or 30 if not isInCar() then return end stopCar() task.wait(0.12) local limits = getLimits() local effectiveSpeed = math.min(carSpeed, limits.maxSpeed) local boostDuration = 1.2 local arriveDist = 12 local brakeDist = 65 for i, targetPos in ipairs(points) do if not farming then break end local startTime = tick() local stuckTime = 0 local lastPos = nil local stuckCount = 0 local pointStartTime = tick() local boostActive = true local isFinalPoint = (i == #points) while tick() - startTime < timeoutPerPoint and farming do local dt = RunService.Heartbeat:Wait() local car, carPart = getCarModel() if not car or not carPart then break end protectCar(car, carPart) local carPos = carPart.Position local flatPos = Vector3.new(carPos.X, 0, carPos.Z) local flatTarget = Vector3.new(targetPos.X, 0, targetPos.Z) local flatDist = (flatPos - flatTarget).Magnitude if flatDist < arriveDist then break end if lastPos then local moved = (carPos - lastPos).Magnitude if moved < 0.2 then stuckTime = stuckTime + dt else stuckTime = 0 end end lastPos = carPos local toTarget = (flatTarget - flatPos) if toTarget.Magnitude < 0.1 then break end toTarget = toTarget.Unit local maxSpeed = effectiveSpeed local boostSpeed = math.min(limits.maxSpeed, effectiveSpeed + 4) local minSpeed = math.min(12, maxSpeed) local speed = maxSpeed local timeSincePointStart = tick() - pointStartTime if boostActive and timeSincePointStart < boostDuration then speed = boostSpeed else boostActive = false if isFinalPoint and flatDist < brakeDist then local t = math.clamp((flatDist - arriveDist) / (brakeDist - arriveDist), 0, 1) speed = minSpeed + (maxSpeed - minSpeed) * t else speed = maxSpeed end end local yDiff = targetPos.Y - carPos.Y local yVel = math.clamp(yDiff * 3.5, -45, 45) local lookVec = carPart.CFrame.LookVector lookVec = Vector3.new(lookVec.X, 0, lookVec.Z) if lookVec.Magnitude < 0.1 then lookVec = Vector3.new(0, 0, -1) end lookVec = lookVec.Unit local dot = lookVec:Dot(toTarget) local cross = lookVec:Cross(toTarget) local angleDiff = math.atan2(cross.Y, dot) if stuckTime > 1.2 then stuckCount = stuckCount + 1 if stuckCount > 5 then break end disableCollisionNow() pcall(function() carPart.CFrame = CFrame.lookAt(carPart.Position + Vector3.new(0, 2.5, 0), carPart.Position + Vector3.new(0, 2.5, 0) + toTarget, Vector3.new(0, 1, 0)) carPart.AssemblyLinearVelocity = Vector3.new(toTarget.X * math.min(120, maxSpeed), 5, toTarget.Z * math.min(120, maxSpeed)) carPart.AssemblyAngularVelocity = Vector3.zero end) task.wait(0.18) stuckTime = 0; lastPos = nil pointStartTime = tick() boostActive = true elseif dot < -0.6 then pcall(function() carPart.AssemblyLinearVelocity = Vector3.new(0, yVel, 0) carPart.AssemblyAngularVelocity = Vector3.new(0, angleDiff > 0 and 4.5 or -4.5, 0) end) else local targetVelX = toTarget.X * speed local targetVelZ = toTarget.Z * speed local currentVel = carPart.AssemblyLinearVelocity local smoothFactor = 0.35 local newVelX = currentVel.X + (targetVelX - currentVel.X) * smoothFactor local newVelZ = currentVel.Z + (targetVelZ - currentVel.Z) * smoothFactor pcall(function() carPart.AssemblyLinearVelocity = Vector3.new(newVelX, yVel, newVelZ) local turnSpeed = math.clamp(angleDiff * 3.0, -3.0, 3.0) carPart.AssemblyAngularVelocity = Vector3.new(0, turnSpeed, 0) end) end end end stopCar() task.wait(0.12) end local function exitCar() local _, _, hum = getChar() if not hum then return false end if not isInCar() then return true end stopCar() if cachedSeat and cachedSeat.Parent and cachedSeat.Occupant == hum then pcall(function() cachedSeat:Sit(nil) end) end task.wait(0.12) if isInCar() then pcall(function() hum.Jump = true end) pressKey("F", 0.15) task.wait(0.18) end cachedSeat = nil task.wait(0.12) return not isInCar() end local function enterCar(targetPos) local char, hrp, hum = getChar() if not hrp or not hum then return false end if isInCar() then return true end local seat = findNearestCar(targetPos) if not seat then return false end walkTo(seat.Position, 10) task.wait(0.12) if isInCar() then stopCar(); return true end if seat.Occupant == nil then pcall(function() seat:Sit(hum) end) end task.wait(0.2) if isInCar() then stopCar(); return true end local currentSeat = getCurrentSeat() if currentSeat and currentSeat ~= seat then exitCar() task.wait(0.2) return enterCar(targetPos) end if not isInCar() then pressKey("F", 0.18); task.wait(0.2) end if isInCar() then stopCar(); return true end pcall(function() char:PivotTo(CFrame.new(seat.Position + Vector3.new(0, 2.5, 0))) end) task.wait(0.12) if seat.Occupant == nil then pcall(function() seat:Sit(hum) end) end task.wait(0.2) if not isInCar() then pressKey("F", 0.18); task.wait(0.2) end cachedSeat = getCurrentSeat() stopCar() return isInCar() end local function getInstanceWorldPos(inst) if not inst then return nil end if inst:IsA("BasePart") then return inst.Position end if inst:IsA("Model") then local ok, cf = pcall(function() return inst:GetPivot() end) return ok and cf.Position or nil end return nil end local function findProximityPromptsNear(pos, maxDist) maxDist = maxDist or 25 local prompts = {} local scanned = 0 for _, obj in ipairs(Workspace:GetChildren()) do local pivotPos = getInstanceWorldPos(obj) if not pivotPos or (pivotPos - pos).Magnitude < (maxDist + 75) then for _, desc in ipairs(obj:GetDescendants()) do scanned = scanned + 1 if scanned % 900 == 0 then task.wait() end if desc:IsA("ProximityPrompt") and desc.Enabled then local parent = desc:FindFirstAncestorOfClass("BasePart") or desc:FindFirstAncestorOfClass("Model") local pPos = getInstanceWorldPos(parent) if pPos then local dist = (pPos - pos).Magnitude if dist < maxDist then table.insert(prompts, {prompt = desc, dist = dist}) end end end end end end table.sort(prompts, function(a, b) return a.dist < b.dist end) return prompts end local function findClickDetectorsNear(pos, maxDist) maxDist = maxDist or 25 local detectors = {} local scanned = 0 for _, obj in ipairs(Workspace:GetChildren()) do local pivotPos = getInstanceWorldPos(obj) if not pivotPos or (pivotPos - pos).Magnitude < (maxDist + 75) then for _, desc in ipairs(obj:GetDescendants()) do scanned = scanned + 1 if scanned % 900 == 0 then task.wait() end if desc:IsA("ClickDetector") then local parent = desc:FindFirstAncestorOfClass("BasePart") or desc:FindFirstAncestorOfClass("Model") local pPos = getInstanceWorldPos(parent) if pPos then local dist = (pPos - pos).Magnitude if dist < maxDist then table.insert(detectors, {detector = desc, dist = dist}) end end end end end end table.sort(detectors, function(a, b) return a.dist < b.dist end) return detectors end local function triggerSinglePurchase(prompt, fallbackDetector, holdDurationFallback) if prompt and prompt.Parent then pcall(function() prompt.RequiresLineOfSight = false prompt.MaxActivationDistance = 40 end) local fired = false if type(fireproximityprompt) == "function" then pcall(function() local origHold = prompt.HoldDuration prompt.HoldDuration = 0 fireproximityprompt(prompt) task.wait(0.08) prompt.HoldDuration = origHold fired = true end) end if not fired or prompt.HoldDuration > 0 then pcall(function() prompt:InputHoldBegin() task.wait(math.clamp(prompt.HoldDuration > 0 and prompt.HoldDuration or 0.25, 0.12, holdDurationFallback or 1.2)) prompt:InputHoldEnd() end) end return true elseif fallbackDetector and fallbackDetector.Parent and type(fireclickdetector) == "function" then pcall(function() fireclickdetector(fallbackDetector) end) return true end return false end local function interactNPC(pos, duration, repeats) duration = duration or 2.5 repeats = math.max(1, math.floor(repeats or 1)) local char, hrp, hum = getChar() if not hrp or not hum then return end if (hrp.Position - pos).Magnitude > 5 then walkTo(pos, 8) task.wait(0.1) end teleportTo(pos) task.wait(0.2) for _ = 1, repeats do if not farming then break end char, hrp, hum = getChar() if not char or not hrp or not hum then break end if (hrp.Position - pos).Magnitude > 4 then teleportTo(pos) task.wait(0.12) end local prompts = findProximityPromptsNear(pos, 25) local detectors = (#prompts == 0) and findClickDetectorsNear(pos, 25) or {} local targetPrompt = (#prompts > 0) and prompts[1].prompt or nil local targetDetector = (#detectors > 0) and detectors[1].detector or nil local triggered = triggerSinglePurchase(targetPrompt, targetDetector, duration) if not triggered then local oldWalkSpeed = hum.WalkSpeed hum.WalkSpeed = 16 local targetWalk = pos - (hrp.CFrame.LookVector * 1.5) hum:MoveTo(targetWalk) task.wait(0.15) rawPress(hexCodes.E) task.wait(math.min(duration, 0.8)) rawRelease(hexCodes.E) hum.WalkSpeed = oldWalkSpeed else pressKey("E", 0.18) end if pos == moneyLaunderNPC then task.wait(1.0) elseif repeats > 1 then task.wait(0.55) else task.wait(0.25) end end end local function farmLoop() while farming do local ok = pcall(function() local limits = getLimits() local countToBuy = math.min(contrabandAmount, limits.maxContraband) if not farming then return end if isInCar() then setStep("Подъезд к точке высадки") driveThroughPoints({exitCarPos}, 90) task.wait(0.12) end if not farming then return end setStep("Выход из авто") exitCar() task.wait(0.12) if not farming then return end setStep("Переход к контрабанде") teleportTo(contrabandPos) task.wait(0.15) if not farming then return end setStep("Покупка контрабанды x" .. tostring(countToBuy)) interactNPC(contrabandPos, 2.0, countToBuy) if not farming then return end setStep("Возврат к авто") task.wait(0.1) teleportTo(carAfterContraband) task.wait(0.1) if not farming then return end enterCar(carAfterContraband) task.wait(0.1) stopCar() if not isInCar() then teleportTo(carAfterContraband) task.wait(0.1) enterCar(carAfterContraband) task.wait(0.1) end if not isInCar() then setStep("Нет авто — повтор через 1с") task.wait(1) return end if not farming then return end setStep("Поездка к скупщику") driveThroughPoints(driveToStop, 35) task.wait(0.1) if not farming then return end setStep("Выход у скупщика") exitCar() task.wait(0.12) if not farming then return end setStep("Подход к скупщику") teleportTo(buyerExactPos) task.wait(0.12) if not farming then return end setStep("Сделка со скупщиком") interactNPC(buyerExactPos, 2, 1) task.wait(0.1) if not farming then return end setStep("Посадка в авто у скупщика") teleportTo(stopPos) task.wait(0.1) if not farming then return end enterCar(stopPos) task.wait(0.1) stopCar() if not isInCar() then teleportTo(stopPos) task.wait(0.1) enterCar(stopPos) task.wait(0.1) end if not isInCar() then setStep("Нет авто — повтор через 1с") task.wait(1) return end if limits.allowLaunder then if not farming then return end setStep("Поездка к отмыву денег") driveThroughPoints(driveFromStopToLaunder, 35) task.wait(0.1) if not farming then return end setStep("Выход у отмыва денег") exitCar() task.wait(0.15) if not farming then return end setStep("Подход к NPC отмыва") teleportTo(moneyLaunderNPC) task.wait(0.15) if not farming then return end setStep("Отмыв денег") interactNPC(moneyLaunderNPC, 2.5, 1) task.wait(0.15) if not farming then return end setStep("Возврат к авто") teleportTo(moneyLaunderCarPos) task.wait(0.15) if not farming then return end enterCar(moneyLaunderCarPos) task.wait(0.1) stopCar() if not isInCar() then teleportTo(moneyLaunderCarPos) task.wait(0.1) enterCar(moneyLaunderCarPos) task.wait(0.1) end if not isInCar() then setStep("Нет авто — повтор через 1с") task.wait(1) return end if not farming then return end setStep("Финиш круга") driveThroughPoints(driveBack, 30) task.wait(0.1) end if type(_G.FurnaceShutoff_RunCycleCheck) == "function" then setStep("Проверка / выключение печей") pcall(_G.FurnaceShutoff_RunCycleCheck) end completedCycles = completedCycles + 1 if guiRefs.updateStats then pcall(guiRefs.updateStats) end end) if not ok then setStep("Пауза 1с и продолжение") stopCar() task.wait(1) end end setStep("Остановлен") stopCollisionEnforcer() end local THEME = { BgMain = Color3.fromRGB(13, 16, 24), BgCard = Color3.fromRGB(22, 27, 40), BgCardAlt = Color3.fromRGB(28, 34, 50), Stroke = Color3.fromRGB(62, 118, 255), StrokeMuted = Color3.fromRGB(46, 55, 78), TextPrimary = Color3.fromRGB(246, 249, 255), TextSecondary = Color3.fromRGB(142, 155, 186), AccentBlue = Color3.fromRGB(72, 145, 255), AccentGreen = Color3.fromRGB(54, 186, 112), AccentRed = Color3.fromRGB(224, 72, 86), AccentAmber = Color3.fromRGB(245, 178, 56), } local function addStroke(parent, color, thickness, transparency) local stroke = Instance.new("UIStroke") stroke.Color = color or THEME.StrokeMuted stroke.Thickness = thickness or 1 stroke.Transparency = transparency or 0.35 stroke.Parent = parent return stroke end local function makeDraggable(dragHandle, targetFrame, blockCheckFn) local dragging = false local dragStart, startPos dragHandle.InputBegan:Connect(function(input) if blockCheckFn and blockCheckFn() then return end if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = targetFrame.Position end end) UserInputService.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local delta = input.Position - dragStart targetFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) end local function openMainAutofarmGUI(screenGui) local existingMain = screenGui:FindFirstChild("MainAutofarmCard") if existingMain then existingMain:Destroy() end local fullSize = UDim2.new(0, 336, 0, 336) local miniSize = UDim2.new(0, 336, 0, 48) local minimized = false local mainFrame = Instance.new("Frame") mainFrame.Name = "MainAutofarmCard" mainFrame.Size = fullSize mainFrame.Position = UDim2.new(0.06, 0, 0.16, 0) mainFrame.BackgroundColor3 = THEME.BgMain mainFrame.BorderSizePixel = 0 mainFrame.ClipsDescendants = true mainFrame.Parent = screenGui Instance.new("UICorner", mainFrame).CornerRadius = UDim.new(0, 16) addStroke(mainFrame, isPaid and THEME.AccentGreen or THEME.Stroke, 1.4, 0.25) local header = Instance.new("Frame") header.Size = UDim2.new(1, 0, 0, 48) header.BackgroundColor3 = THEME.BgCard header.BorderSizePixel = 0 header.Parent = mainFrame local accentDot = Instance.new("Frame") accentDot.Size = UDim2.new(0, 9, 0, 9) accentDot.Position = UDim2.new(0, 14, 0.5, -4.5) accentDot.BackgroundColor3 = THEME.AccentRed accentDot.BorderSizePixel = 0 accentDot.Parent = header Instance.new("UICorner", accentDot).CornerRadius = UDim.new(1, 0) local title = Instance.new("TextLabel") title.Size = UDim2.new(1, -110, 0, 20) title.Position = UDim2.new(0, 30, 0, 7) title.BackgroundTransparency = 1 title.Text = isPaid and "SAN DIEGO AUTOFARM [PAID]" or "SAN DIEGO AUTOFARM [FREE]" title.TextColor3 = THEME.TextPrimary title.Font = Enum.Font.GothamBold title.TextSize = 13 title.TextXAlignment = Enum.TextXAlignment.Left title.Parent = header local subTitle = Instance.new("TextLabel") subTitle.Size = UDim2.new(1, -110, 0, 14) subTitle.Position = UDim2.new(0, 30, 0, 25) subTitle.BackgroundTransparency = 1 subTitle.Text = isPaid and "Полный цикл (x10 / 220 u/s) | RightShift" or "Полный цикл FREE (x2 / 95 u/s) | RightShift" subTitle.TextColor3 = isPaid and THEME.AccentGreen or THEME.TextSecondary subTitle.Font = Enum.Font.Gotham subTitle.TextSize = 10 subTitle.TextXAlignment = Enum.TextXAlignment.Left subTitle.Parent = header local minBtn = Instance.new("TextButton") minBtn.Size = UDim2.new(0, 28, 0, 28) minBtn.Position = UDim2.new(1, -66, 0.5, -14) minBtn.BackgroundColor3 = THEME.BgCardAlt minBtn.Text = "—" minBtn.TextColor3 = THEME.TextPrimary minBtn.Font = Enum.Font.GothamBold minBtn.TextSize = 12 minBtn.Parent = header Instance.new("UICorner", minBtn).CornerRadius = UDim.new(0, 8) local closeBtn = Instance.new("TextButton") closeBtn.Size = UDim2.new(0, 28, 0, 28) closeBtn.Position = UDim2.new(1, -34, 0.5, -14) closeBtn.BackgroundColor3 = THEME.AccentRed closeBtn.Text = "✕" closeBtn.TextColor3 = Color3.new(1, 1, 1) closeBtn.Font = Enum.Font.GothamBold closeBtn.TextSize = 12 closeBtn.Parent = header Instance.new("UICorner", closeBtn).CornerRadius = UDim.new(0, 8) local body = Instance.new("Frame") body.Size = UDim2.new(1, -24, 1, -60) body.Position = UDim2.new(0, 12, 0, 54) body.BackgroundTransparency = 1 body.Parent = mainFrame local limits = getLimits() if contrabandAmount > limits.maxContraband then contrabandAmount = limits.maxContraband end if carSpeed > limits.maxSpeed then carSpeed = limits.maxSpeed end local contraCard = Instance.new("Frame") contraCard.Size = UDim2.new(1, 0, 0, 44) contraCard.Position = UDim2.new(0, 0, 0, 0) contraCard.BackgroundColor3 = THEME.BgCard contraCard.BorderSizePixel = 0 contraCard.Parent = body Instance.new("UICorner", contraCard).CornerRadius = UDim.new(0, 10) addStroke(contraCard, THEME.StrokeMuted, 1, 0.35) local amountLabel = Instance.new("TextLabel") amountLabel.Size = UDim2.new(0, 130, 1, 0) amountLabel.Position = UDim2.new(0, 12, 0, 0) amountLabel.BackgroundTransparency = 1 amountLabel.Text = "Контрабанда" amountLabel.TextColor3 = THEME.TextPrimary amountLabel.Font = Enum.Font.GothamMedium amountLabel.TextSize = 12 amountLabel.TextXAlignment = Enum.TextXAlignment.Left amountLabel.Parent = contraCard local amountValue = Instance.new("TextLabel") amountValue.Size = UDim2.new(0, 32, 1, 0) amountValue.Position = UDim2.new(1, -100, 0, 0) amountValue.BackgroundTransparency = 1 amountValue.Text = tostring(contrabandAmount) amountValue.TextColor3 = THEME.AccentGreen amountValue.Font = Enum.Font.GothamBold amountValue.TextSize = 14 amountValue.Parent = contraCard local minusBtn = Instance.new("TextButton") minusBtn.Size = UDim2.new(0, 28, 0, 28) minusBtn.Position = UDim2.new(1, -66, 0.5, -14) minusBtn.BackgroundColor3 = THEME.BgCardAlt minusBtn.Text = "-" minusBtn.TextColor3 = Color3.new(1, 1, 1) minusBtn.Font = Enum.Font.GothamBold minusBtn.TextSize = 15 minusBtn.Parent = contraCard Instance.new("UICorner", minusBtn).CornerRadius = UDim.new(0, 8) local plusBtn = Instance.new("TextButton") plusBtn.Size = UDim2.new(0, 28, 0, 28) plusBtn.Position = UDim2.new(1, -34, 0.5, -14) plusBtn.BackgroundColor3 = THEME.BgCardAlt plusBtn.Text = "+" plusBtn.TextColor3 = Color3.new(1, 1, 1) plusBtn.Font = Enum.Font.GothamBold plusBtn.TextSize = 15 plusBtn.Parent = contraCard Instance.new("UICorner", plusBtn).CornerRadius = UDim.new(0, 8) minusBtn.MouseButton1Click:Connect(function() if contrabandAmount > 1 then contrabandAmount = contrabandAmount - 1 amountValue.Text = tostring(contrabandAmount) end end) plusBtn.MouseButton1Click:Connect(function() local lim = getLimits() if contrabandAmount < lim.maxContraband then contrabandAmount = contrabandAmount + 1 amountValue.Text = tostring(contrabandAmount) end end) local speedCard = Instance.new("Frame") speedCard.Size = UDim2.new(1, 0, 0, 58) speedCard.Position = UDim2.new(0, 0, 0, 52) speedCard.BackgroundColor3 = THEME.BgCard speedCard.BorderSizePixel = 0 speedCard.Parent = body Instance.new("UICorner", speedCard).CornerRadius = UDim.new(0, 10) addStroke(speedCard, THEME.StrokeMuted, 1, 0.35) local speedLabel = Instance.new("TextLabel") speedLabel.Size = UDim2.new(0.6, 0, 0, 20) speedLabel.Position = UDim2.new(0, 12, 0, 6) speedLabel.BackgroundTransparency = 1 speedLabel.Text = "Скорость авто" speedLabel.TextColor3 = THEME.TextPrimary speedLabel.Font = Enum.Font.GothamMedium speedLabel.TextSize = 12 speedLabel.TextXAlignment = Enum.TextXAlignment.Left speedLabel.Parent = speedCard local speedBadge = Instance.new("TextLabel") speedBadge.Size = UDim2.new(0.35, 0, 0, 20) speedBadge.Position = UDim2.new(0.62, 0, 0, 6) speedBadge.BackgroundTransparency = 1 speedBadge.Text = tostring(carSpeed) .. " u/s" speedBadge.TextColor3 = THEME.AccentBlue speedBadge.Font = Enum.Font.GothamBold speedBadge.TextSize = 12 speedBadge.TextXAlignment = Enum.TextXAlignment.Right speedBadge.Parent = speedCard local sliderBg = Instance.new("Frame") sliderBg.Size = UDim2.new(1, -24, 0, 8) sliderBg.Position = UDim2.new(0, 12, 0, 36) sliderBg.BackgroundColor3 = Color3.fromRGB(42, 50, 72) sliderBg.BorderSizePixel = 0 sliderBg.Parent = speedCard Instance.new("UICorner", sliderBg).CornerRadius = UDim.new(1, 0) local initRatio = math.clamp((carSpeed - 1) / (500 - 1), 0, 1) local sliderFill = Instance.new("Frame") sliderFill.Size = UDim2.new(initRatio, 0, 1, 0) sliderFill.BackgroundColor3 = THEME.AccentBlue sliderFill.BorderSizePixel = 0 sliderFill.Parent = sliderBg Instance.new("UICorner", sliderFill).CornerRadius = UDim.new(1, 0) local sliderKnob = Instance.new("Frame") sliderKnob.Size = UDim2.new(0, 16, 0, 16) sliderKnob.Position = UDim2.new(initRatio, -8, 0.5, -8) sliderKnob.BackgroundColor3 = Color3.new(1, 1, 1) sliderKnob.BorderSizePixel = 0 sliderKnob.Parent = sliderBg Instance.new("UICorner", sliderKnob).CornerRadius = UDim.new(1, 0) addStroke(sliderKnob, THEME.AccentBlue, 2, 0) local sliderDragging = false local function updateSlider(inputPos) local lim = getLimits() local relX = math.clamp(inputPos.X - sliderBg.AbsolutePosition.X, 0, sliderBg.AbsoluteSize.X) local ratio = relX / sliderBg.AbsoluteSize.X local desired = math.floor(1 + ratio * (500 - 1)) if desired > lim.maxSpeed then desired = lim.maxSpeed end carSpeed = desired local clampedRatio = math.clamp((carSpeed - 1) / (500 - 1), 0, 1) speedBadge.Text = tostring(carSpeed) .. " u/s" sliderFill.Size = UDim2.new(clampedRatio, 0, 1, 0) sliderKnob.Position = UDim2.new(clampedRatio, -8, 0.5, -8) end sliderBg.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then sliderDragging = true updateSlider(input.Position) end end) sliderKnob.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then sliderDragging = true end end) local fpsBtn = Instance.new("TextButton") fpsBtn.Size = UDim2.new(0.62, -4, 0, 34) fpsBtn.Position = UDim2.new(0, 0, 0, 118) fpsBtn.BackgroundColor3 = isPaid and THEME.AccentBlue or THEME.BgCardAlt fpsBtn.Text = isPaid and "БУСТ FPS" or "БУСТ FPS [PAID]" fpsBtn.TextColor3 = isPaid and Color3.new(1, 1, 1) or THEME.TextSecondary fpsBtn.Font = Enum.Font.GothamBold fpsBtn.TextSize = 11 fpsBtn.Parent = body Instance.new("UICorner", fpsBtn).CornerRadius = UDim.new(0, 9) fpsBtn.MouseButton1Click:Connect(function() local ok = applyFPSBoost() if ok then fpsBtn.Text = "FPS ОПТИМИЗИРОВАН" fpsBtn.BackgroundColor3 = THEME.AccentGreen fpsBtn.TextColor3 = Color3.new(1, 1, 1) end end) local espBtn = Instance.new("TextButton") espBtn.Size = UDim2.new(0.38, -4, 0, 34) espBtn.Position = UDim2.new(0.62, 4, 0, 118) espBtn.BackgroundColor3 = THEME.BgCardAlt espBtn.Text = isPaid and (espEnabled and "ESP: ВКЛ" or "ESP: ВЫКЛ") or "ESP: PAID" espBtn.TextColor3 = isPaid and (espEnabled and THEME.AccentGreen or THEME.TextSecondary) or THEME.AccentAmber espBtn.Font = Enum.Font.GothamBold espBtn.TextSize = 11 espBtn.Parent = body Instance.new("UICorner", espBtn).CornerRadius = UDim.new(0, 9) addStroke(espBtn, THEME.StrokeMuted, 1, 0.35) espBtn.MouseButton1Click:Connect(function() if not getLimits().allowEsp then return end espEnabled = not espEnabled espBtn.Text = espEnabled and "ESP: ВКЛ" or "ESP: ВЫКЛ" espBtn.TextColor3 = espEnabled and THEME.AccentGreen or THEME.TextSecondary if espEnabled and farming then createESP() elseif not espEnabled then removeESP() end end) local statusLabel = Instance.new("TextLabel") statusLabel.Size = UDim2.new(0.65, 0, 0, 18) statusLabel.Position = UDim2.new(0, 0, 0, 160) statusLabel.BackgroundTransparency = 1 statusLabel.Text = "Статус: ОСТАНОВЛЕН" statusLabel.TextColor3 = THEME.AccentRed statusLabel.Font = Enum.Font.GothamBold statusLabel.TextSize = 11 statusLabel.TextXAlignment = Enum.TextXAlignment.Left statusLabel.Parent = body local cyclesLabel = Instance.new("TextLabel") cyclesLabel.Size = UDim2.new(0.35, 0, 0, 18) cyclesLabel.Position = UDim2.new(0.65, 0, 0, 160) cyclesLabel.BackgroundTransparency = 1 cyclesLabel.Text = "Кругов: 0" cyclesLabel.TextColor3 = THEME.TextSecondary cyclesLabel.Font = Enum.Font.GothamBold cyclesLabel.TextSize = 11 cyclesLabel.TextXAlignment = Enum.TextXAlignment.Right cyclesLabel.Parent = body local stepLabel = Instance.new("TextLabel") stepLabel.Size = UDim2.new(1, 0, 0, 16) stepLabel.Position = UDim2.new(0, 0, 0, 178) stepLabel.BackgroundTransparency = 1 stepLabel.Text = "Этап: " .. currentStepText stepLabel.TextColor3 = THEME.TextSecondary stepLabel.Font = Enum.Font.Gotham stepLabel.TextSize = 11 stepLabel.TextXAlignment = Enum.TextXAlignment.Left stepLabel.TextTruncate = Enum.TextTruncate.AtEnd stepLabel.Parent = body guiRefs.stepLabel = stepLabel guiRefs.updateStats = function() if cyclesLabel and cyclesLabel.Parent then cyclesLabel.Text = "Кругов: " .. tostring(completedCycles) end end local toggleBtn = Instance.new("TextButton") toggleBtn.Size = UDim2.new(1, 0, 0, 44) toggleBtn.Position = UDim2.new(0, 0, 1, -44) toggleBtn.BackgroundColor3 = THEME.AccentGreen toggleBtn.Text = "НАЧАТЬ ФАРМ" toggleBtn.TextColor3 = Color3.new(1, 1, 1) toggleBtn.Font = Enum.Font.GothamBold toggleBtn.TextSize = 13 toggleBtn.Parent = body Instance.new("UICorner", toggleBtn).CornerRadius = UDim.new(0, 10) minBtn.MouseButton1Click:Connect(function() minimized = not minimized minBtn.Text = minimized and "+" or "—" TweenService:Create( mainFrame, TweenInfo.new(0.18, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Size = minimized and miniSize or fullSize } ):Play() end) makeDraggable(header, mainFrame, function() return sliderDragging end) UserInputService.InputChanged:Connect(function(input) if sliderDragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then updateSlider(input.Position) end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then sliderDragging = false end end) UserInputService.InputBegan:Connect(function(input, gpe) if gpe then return end if input.KeyCode == Enum.KeyCode.RightShift then mainFrame.Visible = not mainFrame.Visible end end) toggleBtn.MouseButton1Click:Connect(function() if not farming then farming = true createESP() pcall(startCollisionEnforcer) accentDot.BackgroundColor3 = THEME.AccentGreen statusLabel.Text = "Статус: РАБОТАЕТ" statusLabel.TextColor3 = THEME.AccentGreen setStep("Подготовка к циклу") toggleBtn.Text = "ОСТАНОВИТЬ" toggleBtn.BackgroundColor3 = THEME.AccentRed task.spawn(farmLoop) else farming = false stopCar() stopCollisionEnforcer() removeESP() accentDot.BackgroundColor3 = THEME.AccentRed statusLabel.Text = "Статус: ОСТАНОВЛЕН" statusLabel.TextColor3 = THEME.AccentRed setStep("Остановлен") toggleBtn.Text = "НАЧАТЬ ФАРМ" toggleBtn.BackgroundColor3 = THEME.AccentGreen end end) closeBtn.MouseButton1Click:Connect(function() farming = false stopCar() stopCollisionEnforcer() removeESP() guiRefs = {} screenGui:Destroy() end) end -- Стартовый экран после инжекта: выбор Бесплатной или Платной версии local function createLaunchSelectorGUI() if not player then return false end local playerGui = player:WaitForChild("PlayerGui", 10) if not playerGui then return false end local old = playerGui:FindFirstChild("SanDiegoLauncherFreePaid") if old then old:Destroy() end local screenGui = Instance.new("ScreenGui") screenGui.Name = "SanDiegoLauncherFreePaid" screenGui.ResetOnSpawn = false screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling screenGui.Parent = playerGui local card = Instance.new("Frame") card.Name = "LauncherCard" card.Size = UDim2.new(0, 350, 0, 238) card.Position = UDim2.new(0.5, -175, 0.5, -119) card.BackgroundColor3 = THEME.BgMain card.BorderSizePixel = 0 card.Parent = screenGui Instance.new("UICorner", card).CornerRadius = UDim.new(0, 16) addStroke(card, THEME.Stroke, 1.4, 0.25) local topBar = Instance.new("Frame") topBar.Size = UDim2.new(1, 0, 0, 46) topBar.BackgroundColor3 = THEME.BgCard topBar.BorderSizePixel = 0 topBar.Parent = card Instance.new("UICorner", topBar).CornerRadius = UDim.new(0, 16) local topTitle = Instance.new("TextLabel") topTitle.Size = UDim2.new(1, -24, 1, 0) topTitle.Position = UDim2.new(0, 14, 0, 0) topTitle.BackgroundTransparency = 1 topTitle.Text = "ВЫБЕРИТЕ ВЕРСИЮ АВТОФАРМА" topTitle.TextColor3 = THEME.TextPrimary topTitle.Font = Enum.Font.GothamBold topTitle.TextSize = 13 topTitle.TextXAlignment = Enum.TextXAlignment.Left topTitle.Parent = topBar local sub = Instance.new("TextLabel") sub.Size = UDim2.new(1, -28, 0, 34) sub.Position = UDim2.new(0, 14, 0, 54) sub.BackgroundTransparency = 1 sub.Text = "Бесплатная версия сразу открывает интерфейс.\nПлатная версия открывает строку ввода ключа." sub.TextColor3 = THEME.TextSecondary sub.Font = Enum.Font.Gotham sub.TextSize = 11 sub.TextXAlignment = Enum.TextXAlignment.Left sub.Parent = card local freeBtn = Instance.new("TextButton") freeBtn.Size = UDim2.new(1, -28, 0, 44) freeBtn.Position = UDim2.new(0, 14, 0, 98) freeBtn.BackgroundColor3 = THEME.AccentGreen freeBtn.Text = "БЕСПЛАТНАЯ ВЕРСИЯ" freeBtn.TextColor3 = Color3.new(1, 1, 1) freeBtn.Font = Enum.Font.GothamBold freeBtn.TextSize = 13 freeBtn.Parent = card Instance.new("UICorner", freeBtn).CornerRadius = UDim.new(0, 10) local paidBtn = Instance.new("TextButton") paidBtn.Size = UDim2.new(1, -28, 0, 44) paidBtn.Position = UDim2.new(0, 14, 0, 150) paidBtn.BackgroundColor3 = THEME.AccentBlue paidBtn.Text = "ПЛАТНАЯ ВЕРСИЯ (ВВЕСТИ КЛЮЧ)" paidBtn.TextColor3 = Color3.new(1, 1, 1) paidBtn.Font = Enum.Font.GothamBold paidBtn.TextSize = 12 paidBtn.Parent = card Instance.new("UICorner", paidBtn).CornerRadius = UDim.new(0, 10) local hint = Instance.new("TextLabel") hint.Size = UDim2.new(1, -28, 0, 22) hint.Position = UDim2.new(0, 14, 0, 202) hint.BackgroundTransparency = 1 hint.Text = "FREE: полный цикл, до x2 и 95 u/s | PAID: до x10 и 220 u/s" hint.TextColor3 = THEME.TextSecondary hint.Font = Enum.Font.Gotham hint.TextSize = 10 hint.TextXAlignment = Enum.TextXAlignment.Left hint.Parent = card -- Экран ввода ключа при выборе «Платная версия» local keyFrame = Instance.new("Frame") keyFrame.Size = UDim2.new(1, 0, 1, -46) keyFrame.Position = UDim2.new(0, 0, 0, 46) keyFrame.BackgroundColor3 = THEME.BgMain keyFrame.BorderSizePixel = 0 keyFrame.Visible = false keyFrame.Parent = card local keyInput = Instance.new("TextBox") keyInput.Size = UDim2.new(1, -28, 0, 40) keyInput.Position = UDim2.new(0, 14, 0, 16) keyInput.BackgroundColor3 = THEME.BgCard keyInput.Text = "" keyInput.PlaceholderText = "Вставьте ключ (KEY-... или VIP-KEY)" keyInput.TextColor3 = THEME.TextPrimary keyInput.PlaceholderColor3 = THEME.TextSecondary keyInput.Font = Enum.Font.GothamBold keyInput.TextSize = 12 keyInput.ClearTextOnFocus = false keyInput.Parent = keyFrame Instance.new("UICorner", keyInput).CornerRadius = UDim.new(0, 10) addStroke(keyInput, THEME.Stroke, 1, 0.35) local checkBtn = Instance.new("TextButton") checkBtn.Size = UDim2.new(0.62, -18, 0, 40) checkBtn.Position = UDim2.new(0, 14, 0, 66) checkBtn.BackgroundColor3 = THEME.AccentGreen checkBtn.Text = "ПРОВЕРИТЬ И ЗАПУСТИТЬ" checkBtn.TextColor3 = Color3.new(1, 1, 1) checkBtn.Font = Enum.Font.GothamBold checkBtn.TextSize = 11 checkBtn.Parent = keyFrame Instance.new("UICorner", checkBtn).CornerRadius = UDim.new(0, 10) local backBtn = Instance.new("TextButton") backBtn.Size = UDim2.new(0.38, -14, 0, 40) backBtn.Position = UDim2.new(0.62, 4, 0, 66) backBtn.BackgroundColor3 = THEME.BgCardAlt backBtn.Text = "НАЗАД" backBtn.TextColor3 = THEME.TextPrimary backBtn.Font = Enum.Font.GothamBold backBtn.TextSize = 11 backBtn.Parent = keyFrame Instance.new("UICorner", backBtn).CornerRadius = UDim.new(0, 10) local keyMsg = Instance.new("TextLabel") keyMsg.Size = UDim2.new(1, -28, 0, 34) keyMsg.Position = UDim2.new(0, 14, 0, 114) keyMsg.BackgroundTransparency = 1 keyMsg.Text = "Введите ключ и нажмите «ПРОВЕРИТЬ И ЗАПУСТИТЬ»" keyMsg.TextColor3 = THEME.AccentAmber keyMsg.Font = Enum.Font.GothamMedium keyMsg.TextSize = 11 keyMsg.TextWrapped = true keyMsg.TextXAlignment = Enum.TextXAlignment.Left keyMsg.Parent = keyFrame freeBtn.MouseButton1Click:Connect(function() isPaid = false activeKey = nil activeExpiresAt = 0 card.Visible = false openMainAutofarmGUI(screenGui) end) paidBtn.MouseButton1Click:Connect(function() freeBtn.Visible = false paidBtn.Visible = false sub.Visible = false hint.Visible = false topTitle.Text = "ПЛАТНАЯ ВЕРСИЯ — ВВОД КЛЮЧА" keyFrame.Visible = true end) backBtn.MouseButton1Click:Connect(function() keyFrame.Visible = false freeBtn.Visible = true paidBtn.Visible = true sub.Visible = true hint.Visible = true topTitle.Text = "ВЫБЕРИТЕ ВЕРСИЮ АВТОФАРМА" end) checkBtn.MouseButton1Click:Connect(function() local ok, msg = verifyAndActivateKey(keyInput.Text) if ok then keyMsg.Text = msg keyMsg.TextColor3 = THEME.AccentGreen task.wait(0.15) card.Visible = false openMainAutofarmGUI(screenGui) else keyMsg.Text = msg keyMsg.TextColor3 = THEME.AccentRed end end) makeDraggable(topBar, card, nil) return true end pcall(createLaunchSelectorGUI)