Advertisement
kill21_2

farm monet

May 7th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.11 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local RunService = game:GetService("RunService")
  3. local TweenService = game:GetService("TweenService")
  4. local TeleportService = game:GetService("TeleportService")
  5. local HttpService = game:GetService("HttpService")
  6.  
  7. -- Настройки
  8. local SETTINGS = {
  9. -- Основные
  10. TeleportHeight = 3, -- На сколько единиц выше телепортироваться
  11. ForwardTime = 0.5, -- Время движения вперед
  12. BackwardTime = 1, -- Время движения назад
  13. WalkSpeed = 16, -- Скорость ходьбы
  14. TeleportDelay = 1, -- Задержка между телепортами
  15. SearchInterval = 5, -- Интервал поиска монет
  16.  
  17. -- Noclip
  18. NoclipDuration = 60, -- Длительность Noclip
  19. NoclipCooldown = 60, -- Охлаждение Noclip
  20.  
  21. -- Сервер хоп
  22. ServerHopInterval = 60, -- Интервал смены сервера (10 мин)
  23.  
  24. -- Цвета
  25. ColorMain = Color3.fromRGB(30, 30, 40),
  26. ColorAccent = Color3.fromRGB(0, 150, 255),
  27. ColorText = Color3.fromRGB(240, 240, 240),
  28. ColorSuccess = Color3.fromRGB(0, 200, 100),
  29. ColorWarning = Color3.fromRGB(255, 150, 0),
  30. ColorError = Color3.fromRGB(255, 50, 50)
  31. }
  32.  
  33. -- Создаем продвинутый GUI
  34. local player = Players.LocalPlayer
  35. local gui = Instance.new("ScreenGui")
  36. gui.Name = "PremiumAutoFarm"
  37. gui.ResetOnSpawn = false
  38. gui.Parent = player:WaitForChild("PlayerGui")
  39.  
  40. -- Основной фрейм
  41. local mainFrame = Instance.new("Frame")
  42. mainFrame.Size = UDim2.new(0, 360, 0, 300)
  43. mainFrame.Position = UDim2.new(0.5, -180, 0.5, -150)
  44. mainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  45. mainFrame.BackgroundColor3 = SETTINGS.ColorMain
  46. mainFrame.BackgroundTransparency = 0.1
  47. mainFrame.BorderSizePixel = 0
  48. mainFrame.Parent = gui
  49.  
  50. -- Скругление углов
  51. local corner = Instance.new("UICorner")
  52. corner.CornerRadius = UDim.new(0, 12)
  53. corner.Parent = mainFrame
  54.  
  55. -- Верхняя панель
  56. local topBar = Instance.new("Frame")
  57. topBar.Size = UDim2.new(1, 0, 0, 45)
  58. topBar.BackgroundColor3 = SETTINGS.ColorAccent
  59. topBar.BorderSizePixel = 0
  60. topBar.Parent = mainFrame
  61.  
  62. local topCorner = Instance.new("UICorner")
  63. topCorner.CornerRadius = UDim.new(0, 12)
  64. topCorner.Parent = topBar
  65.  
  66. -- Заголовок
  67. local title = Instance.new("TextLabel")
  68. title.Text = "AUTO FARM v3.0"
  69. title.Size = UDim2.new(1, -50, 1, 0)
  70. title.Font = Enum.Font.GothamBold
  71. title.TextColor3 = SETTINGS.ColorText
  72. title.BackgroundTransparency = 1
  73. title.TextSize = 18
  74. title.TextXAlignment = Enum.TextXAlignment.Left
  75. title.Position = UDim2.new(0, 15, 0, 0)
  76. title.Parent = topBar
  77.  
  78. -- Кнопка закрытия
  79. local closeBtn = Instance.new("TextButton")
  80. closeBtn.Text = "×"
  81. closeBtn.Size = UDim2.new(0, 45, 0, 45)
  82. closeBtn.Position = UDim2.new(1, -45, 0, 0)
  83. closeBtn.Font = Enum.Font.GothamBold
  84. closeBtn.TextColor3 = SETTINGS.ColorText
  85. closeBtn.TextSize = 24
  86. closeBtn.BackgroundTransparency = 1
  87. closeBtn.Parent = topBar
  88.  
  89. -- Основное содержимое
  90. local contentFrame = Instance.new("Frame")
  91. contentFrame.Size = UDim2.new(1, -20, 1, -65)
  92. contentFrame.Position = UDim2.new(0, 10, 0, 55)
  93. contentFrame.BackgroundTransparency = 1
  94. contentFrame.Parent = mainFrame
  95.  
  96. -- Главная кнопка
  97. local toggleBtn = Instance.new("TextButton")
  98. toggleBtn.Text = "ОСТАНОВИТЬ"
  99. toggleBtn.Size = UDim2.new(1, 0, 0, 50)
  100. toggleBtn.Position = UDim2.new(0, 0, 0, 0)
  101. toggleBtn.Font = Enum.Font.GothamBold
  102. toggleBtn.TextColor3 = SETTINGS.ColorText
  103. toggleBtn.BackgroundColor3 = SETTINGS.ColorError
  104. toggleBtn.AutoButtonColor = false
  105. toggleBtn.Parent = contentFrame
  106.  
  107. local btnCorner = Instance.new("UICorner")
  108. btnCorner.CornerRadius = UDim.new(0, 8)
  109. btnCorner.Parent = toggleBtn
  110.  
  111. -- Функция создания информационных строк
  112. local function createInfoRow(icon, yPos)
  113. local frame = Instance.new("Frame")
  114. frame.Size = UDim2.new(1, 0, 0, 28)
  115. frame.Position = UDim2.new(0, 0, 0, yPos)
  116. frame.BackgroundTransparency = 1
  117. frame.Parent = contentFrame
  118.  
  119. local iconLabel = Instance.new("TextLabel")
  120. iconLabel.Text = icon
  121. iconLabel.Size = UDim2.new(0, 28, 0, 28)
  122. iconLabel.Font = Enum.Font.GothamBold
  123. iconLabel.TextColor3 = SETTINGS.ColorAccent
  124. iconLabel.BackgroundTransparency = 1
  125. iconLabel.TextXAlignment = Enum.TextXAlignment.Left
  126. iconLabel.Parent = frame
  127.  
  128. local textLabel = Instance.new("TextLabel")
  129. textLabel.Name = "TextLabel"
  130. textLabel.Text = "Загрузка..."
  131. textLabel.Size = UDim2.new(1, -28, 1, 0)
  132. textLabel.Position = UDim2.new(0, 28, 0, 0)
  133. textLabel.Font = Enum.Font.Gotham
  134. textLabel.TextColor3 = SETTINGS.ColorText
  135. textLabel.BackgroundTransparency = 1
  136. textLabel.TextXAlignment = Enum.TextXAlignment.Left
  137. textLabel.Parent = frame
  138.  
  139. return textLabel
  140. end
  141.  
  142. -- Информационные строки
  143. local statusLabel = createInfoRow("📊", 60)
  144. local bundlesLabel = createInfoRow("💰", 95)
  145. local noclipLabel = createInfoRow("🚀", 130)
  146. local serverLabel = createInfoRow("🔁", 165)
  147.  
  148. -- Анимация кнопок
  149. local function animateButton(btn, color)
  150. local tweenInfo = TweenInfo.new(0.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  151. local tween = TweenService:Create(btn, tweenInfo, {BackgroundColor3 = color:lerp(Color3.new(1,1,1), 0.3)})
  152. tween:Play()
  153. tween.Completed:Connect(function()
  154. local tweenBack = TweenService:Create(btn, tweenInfo, {BackgroundColor3 = color})
  155. tweenBack:Play()
  156. end)
  157. end
  158.  
  159. -- Система обновления статусов
  160. local function updateStatus(text, color)
  161. statusLabel.Text = text
  162. statusLabel.TextColor3 = color or SETTINGS.ColorText
  163. end
  164.  
  165. local function updateBundles(count)
  166. bundlesLabel.Text = "Монет: "..count
  167. end
  168.  
  169. local function updateNoclip(status, color)
  170. noclipLabel.Text = "Noclip: "..status
  171. noclipLabel.TextColor3 = color or SETTINGS.ColorText
  172. end
  173.  
  174. local function updateServerTime(seconds)
  175. local mins = math.floor(seconds / 60)
  176. local secs = seconds % 60
  177. serverLabel.Text = "Сервер: "..string.format("%02d:%02d", mins, secs)
  178. end
  179.  
  180. -- Noclip система
  181. local noclipActive = false
  182. local noclipConnection
  183.  
  184. local function enableNoclip()
  185. if noclipActive then return end
  186. noclipActive = true
  187. updateNoclip("ВКЛ", SETTINGS.ColorSuccess)
  188.  
  189. local character = player.Character
  190. if not character then return end
  191.  
  192. noclipConnection = RunService.Stepped:Connect(function()
  193. if not noclipActive then return end
  194. for _, part in ipairs(character:GetDescendants()) do
  195. if part:IsA("BasePart") then
  196. part.CanCollide = false
  197. end
  198. end
  199. end)
  200. end
  201.  
  202. local function disableNoclip()
  203. if not noclipActive then return end
  204. noclipActive = false
  205. updateNoclip("ВЫКЛ", SETTINGS.ColorWarning)
  206.  
  207. if noclipConnection then
  208. noclipConnection:Disconnect()
  209. end
  210. end
  211.  
  212. -- Цикл Noclip
  213. local function noclipCycle()
  214. while true do
  215. enableNoclip()
  216. wait(SETTINGS.NoclipDuration)
  217. disableNoclip()
  218. wait(SETTINGS.NoclipCooldown)
  219. end
  220. end
  221.  
  222. -- Система перехода на сервер
  223. local serverHopTime = 0
  224.  
  225. local function findNewServer()
  226. local success, result = pcall(function()
  227. return HttpService:JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/"..game.PlaceId.."/servers/Public?limit=100"))
  228. end)
  229.  
  230. if success and result.data then
  231. for _, server in ipairs(result.data) do
  232. if server.playing < server.maxPlayers and server.id ~= game.JobId then
  233. return server.id
  234. end
  235. end
  236. end
  237. return nil
  238. end
  239.  
  240. local function serverHop()
  241. local newJobId = findNewServer()
  242. if newJobId then
  243. TeleportService:TeleportToPlaceInstance(game.PlaceId, newJobId, player)
  244. else
  245. TeleportService:Teleport(game.PlaceId, player)
  246. end
  247. end
  248.  
  249. local function serverHopCycle()
  250. while true do
  251. updateServerTime(SETTINGS.ServerHopInterval - serverHopTime)
  252. serverHopTime = serverHopTime + 1
  253.  
  254. if serverHopTime >= SETTINGS.ServerHopInterval then
  255. updateStatus("Переход на новый сервер...", SETTINGS.ColorWarning)
  256. wait(2)
  257. serverHop()
  258. break
  259. end
  260.  
  261. wait(1)
  262. end
  263. end
  264.  
  265. -- Основная система фарма
  266. local isRunning = true -- Автоматически включен
  267.  
  268. local function teleportToBundle(bundle)
  269. local character = player.Character
  270. if not character then return false end
  271.  
  272. local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  273. if not humanoidRootPart then return false end
  274.  
  275. if not bundle or not bundle.PrimaryPart then return false end
  276.  
  277. -- Телепортация немного выше монеты
  278. local targetCFrame = bundle.PrimaryPart.CFrame + Vector3.new(0, SETTINGS.TeleportHeight, 0)
  279. humanoidRootPart.CFrame = targetCFrame
  280.  
  281. -- Движение вперед-назад
  282. local humanoid = character:FindFirstChildOfClass("Humanoid")
  283. if humanoid then
  284. humanoid.WalkSpeed = SETTINGS.WalkSpeed
  285. humanoid:Move(Vector3.new(1, 0, 0))
  286. wait(SETTINGS.ForwardTime)
  287. humanoid:Move(Vector3.new(-1, 0, 0))
  288. wait(SETTINGS.BackwardTime)
  289. humanoid:Move(Vector3.new(0, 0, 0))
  290. end
  291.  
  292. return true
  293. end
  294.  
  295. local function farmLoop()
  296. while isRunning do
  297. local cashBundles = workspace:FindFirstChild("Game") and
  298. workspace.Game:FindFirstChild("Entities") and
  299. workspace.Game.Entities:FindFirstChild("CashBundle")
  300.  
  301. if cashBundles then
  302. local bundles = {}
  303.  
  304. -- Собираем все доступные монеты
  305. for _, bundle in ipairs(cashBundles:GetChildren()) do
  306. if bundle:IsA("Model") and bundle.PrimaryPart then
  307. table.insert(bundles, bundle)
  308. end
  309. end
  310.  
  311. updateBundles(#bundles)
  312.  
  313. -- Телепортируемся к каждой монете
  314. for _, bundle in ipairs(bundles) do
  315. if not isRunning then break end
  316. if teleportToBundle(bundle) then
  317. wait(SETTINGS.TeleportDelay)
  318. end
  319. end
  320. else
  321. updateStatus("Монеты не найдены", SETTINGS.ColorWarning)
  322. end
  323.  
  324. wait(SETTINGS.SearchInterval)
  325. end
  326. end
  327.  
  328. -- Обработчики кнопок
  329. toggleBtn.MouseButton1Click:Connect(function()
  330. animateButton(toggleBtn, isRunning and SETTINGS.ColorSuccess or SETTINGS.ColorError)
  331. isRunning = not isRunning
  332.  
  333. if isRunning then
  334. toggleBtn.Text = "ОСТАНОВИТЬ"
  335. toggleBtn.BackgroundColor3 = SETTINGS.ColorError
  336. updateStatus("Работает", SETTINGS.ColorSuccess)
  337. else
  338. toggleBtn.Text = "ЗАПУСТИТЬ"
  339. toggleBtn.BackgroundColor3 = SETTINGS.ColorSuccess
  340. updateStatus("Остановлено", SETTINGS.ColorError)
  341. end
  342. end)
  343.  
  344. closeBtn.MouseButton1Click:Connect(function()
  345. gui:Destroy()
  346. end)
  347.  
  348. -- Восстановление после смерти
  349. player.CharacterAdded:Connect(function(character)
  350. if isRunning then
  351. wait(3) -- Даем время на появление персонажа
  352. updateStatus("Работает", SETTINGS.ColorSuccess)
  353. end
  354. end)
  355.  
  356. -- Автоматический запуск всех систем
  357. spawn(farmLoop)
  358. spawn(noclipCycle)
  359. spawn(serverHopCycle)
  360. updateStatus("Автозапуск...", SETTINGS.ColorSuccess)
  361. wait(2)
  362. updateStatus("Работает", SETTINGS.ColorSuccess)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement