-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] --[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6aba6e9d7084eb3715a66601"))() end) end) --[[rscripts:analytics:end]] -- ============================================================ -- šŸ‡µšŸ‡° AUTO-FARM v8 — "Chhat Se Aao" Edition -- Three-phase flight: Rise → Horizontal → Descend onto pad top -- Forces CanCollide off on WinPad, snaps to top surface on arrival -- MUST be a LocalScript in StarterPlayer > StarterPlayerScripts -- ============================================================ print("[AutoFarm] AoA! v8 load ho raha hai...") local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local ok, err = pcall(function() local player = Players.LocalPlayer assert(player, "No LocalPlayer") local playerGui = player:WaitForChild("PlayerGui", 10) assert(playerGui, "PlayerGui nahi mila — LocalScript use karo!") -- THEME local Theme = { BG = Color3.fromRGB(20, 22, 20), Sidebar = Color3.fromRGB(12, 16, 12), Panel = Color3.fromRGB(28, 32, 28), Element = Color3.fromRGB(40, 46, 40), ElementH = Color3.fromRGB(54, 62, 54), Accent = Color3.fromRGB(30, 168, 90), Text = Color3.fromRGB(232, 235, 230), TextDim = Color3.fromRGB(140, 148, 140), Border = Color3.fromRGB(46, 54, 46), Success = Color3.fromRGB(80, 200, 120), Danger = Color3.fromRGB(230, 75, 75), Warning = Color3.fromRGB(240, 180, 60), White = Color3.fromRGB(245, 245, 245), } -- CONFIG local Config = { Speed = 10, WaitAtPad = 2.0, ReturnHome = true, Noclip = true, ArriveDist = 4, TimeOut = 90, HoverHeight = 3, -- how high above the pad's top surface to land ApproachHeight = 8, -- how high above the pad to fly during horizontal phase ForceSnap = true, -- final CFrame snap onto pad top PhaseGap = 0.05, -- small pause between phases } local State = { Running = false, Trips = 0, HomeCFrame = nil, LoopThread = nil, ActiveMove = false, } -- ============================================================ -- UI HELPERS -- ============================================================ local function new(c, p) local i = Instance.new(c); for k, v in pairs(p or {}) do i[k] = v end; return i end local function corner(p, r) local c = Instance.new("UICorner"); c.CornerRadius = UDim.new(0, r or 6); c.Parent = p; return c end local function stroke(p, c, t) local s = Instance.new("UIStroke"); s.Color = c or Theme.Border; s.Thickness = t or 1; s.Parent = p; return s end local function pad(p, n) local u = Instance.new("UIPadding") local v = UDim.new(0, n) u.PaddingTop, u.PaddingBottom, u.PaddingLeft, u.PaddingRight = v, v, v, v u.Parent = p; return u end local old = playerGui:FindFirstChild("AutoFarmGui") if old then old:Destroy() end local gui = new("ScreenGui", { Name = "AutoFarmGui", ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, IgnoreGuiInset = true, Parent = playerGui, }) local main = new("Frame", { Size = UDim2.new(0, 620, 0, 460), Position = UDim2.new(0.5, -310, 0.5, -230), BackgroundColor3 = Theme.BG, BorderSizePixel = 0, Parent = gui, }) corner(main, 10); stroke(main, Theme.Border, 1) -- Sidebar local sidebar = new("Frame", { Size = UDim2.new(0, 150, 1, 0), BackgroundColor3 = Theme.Sidebar, BorderSizePixel = 0, Parent = main, }) corner(sidebar, 10) new("Frame", { Size = UDim2.new(0, 14, 1, 0), Position = UDim2.new(1, -14, 0, 0), BackgroundColor3 = Theme.Sidebar, BorderSizePixel = 0, Parent = sidebar }) new("TextLabel", { Size = UDim2.new(1, -20, 0, 22), Position = UDim2.new(0, 20, 0, 14), BackgroundTransparency = 1, Text = "šŸ‡µšŸ‡° TOP-FLY", TextColor3 = Theme.Accent, Font = Enum.Font.GothamBold, TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left, Parent = sidebar }) new("TextLabel", { Size = UDim2.new(1, -20, 0, 22), Position = UDim2.new(0, 20, 0, 34), BackgroundTransparency = 1, Text = "AUTO FARM", TextColor3 = Theme.Text, Font = Enum.Font.GothamBold, TextSize = 15, TextXAlignment = Enum.TextXAlignment.Left, Parent = sidebar }) new("TextLabel", { Size = UDim2.new(1, -20, 0, 12), Position = UDim2.new(0, 20, 0, 56), BackgroundTransparency = 1, Text = "Chhat se aao mode", TextColor3 = Theme.TextDim, Font = Enum.Font.Gotham, TextSize = 9, TextXAlignment = Enum.TextXAlignment.Left, Parent = sidebar }) local nav = new("Frame", { Size = UDim2.new(1, 0, 1, -180), Position = UDim2.new(0, 0, 0, 90), BackgroundTransparency = 1, Parent = sidebar }) new("UIListLayout", { Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder, Parent = nav }) pad(nav, 8) new("TextLabel", { Size = UDim2.new(1, 0, 0, 50), Position = UDim2.new(0, 0, 1, -60), BackgroundTransparency = 1, Text = "Upar se aao, neeche\nmat phaso šŸ‡µšŸ‡°", TextColor3 = Theme.TextDim, Font = Enum.Font.Gotham, TextSize = 10, TextWrapped = true, Parent = sidebar }) -- Content local content = new("Frame", { Size = UDim2.new(1, -150, 1, 0), Position = UDim2.new(0, 150, 0, 0), BackgroundTransparency = 1, Parent = main }) local header = new("Frame", { Size = UDim2.new(1, 0, 0, 45), BackgroundTransparency = 1, Parent = content }) local headerTitle = new("TextLabel", { Size = UDim2.new(1, -100, 1, 0), Position = UDim2.new(0, 20, 0, 0), BackgroundTransparency = 1, Text = "Farm", TextColor3 = Theme.Text, Font = Enum.Font.GothamBold, TextSize = 16, TextXAlignment = Enum.TextXAlignment.Left, Parent = header }) local closeBtn = new("TextButton", { Size = UDim2.new(0, 26, 0, 26), Position = UDim2.new(1, -40, 0.5, -13), BackgroundColor3 = Theme.Element, Text = "āˆ’", TextColor3 = Theme.Text, Font = Enum.Font.GothamBold, TextSize = 18, AutoButtonColor = false, BorderSizePixel = 0, Parent = header }) corner(closeBtn, 6) local pageHolder = new("Frame", { Size = UDim2.new(1, 0, 1, -45), Position = UDim2.new(0, 0, 0, 45), BackgroundTransparency = 1, Parent = content }) local function makePage(name) local p = new("ScrollingFrame", { Name = name, Size = UDim2.new(1, 0, 1, 0), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 4, ScrollBarImageColor3 = Theme.Element, CanvasSize = UDim2.new(0, 0, 0, 0), AutomaticCanvasSize = Enum.AutomaticSize.Y, Visible = false, Parent = pageHolder }) pad(p, 16) new("UIListLayout", { Padding = UDim.new(0, 10), SortOrder = Enum.SortOrder.LayoutOrder, Parent = p }) return p end local farmPage = makePage("Farm") local settingsPage = makePage("Settings") local aboutPage = makePage("About") -- Builders local function sectionLabel(parent, text, order) return new("TextLabel", { Size = UDim2.new(1, 0, 0, 16), BackgroundTransparency = 1, Text = string.upper(text), TextColor3 = Theme.TextDim, Font = Enum.Font.GothamBold, TextSize = 11, TextXAlignment = Enum.TextXAlignment.Left, LayoutOrder = order or 100, Parent = parent }) end local function makeToggle(parent, labelText, default, order, callback) local row = new("Frame", { Size = UDim2.new(1, 0, 0, 34), BackgroundColor3 = Theme.Panel, BorderSizePixel = 0, LayoutOrder = order or 0, Parent = parent }) corner(row, 8) new("TextLabel", { Size = UDim2.new(0.7, 0, 1, 0), Position = UDim2.new(0, 12, 0, 0), BackgroundTransparency = 1, Text = labelText, TextColor3 = Theme.Text, Font = Enum.Font.Gotham, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left, Parent = row }) local track = new("TextButton", { Size = UDim2.new(0, 38, 0, 20), Position = UDim2.new(1, -50, 0.5, -10), BackgroundColor3 = default and Theme.Accent or Theme.Element, Text = "", AutoButtonColor = false, BorderSizePixel = 0, Parent = row }) corner(track, 10) local thumb = new("Frame", { Size = UDim2.new(0, 16, 0, 16), Position = default and UDim2.new(1, -18, 0.5, -8) or UDim2.new(0, 2, 0.5, -8), BackgroundColor3 = Theme.White, BorderSizePixel = 0, Parent = track }) corner(thumb, 8) local s = default track.MouseButton1Click:Connect(function() s = not s TweenService:Create(thumb, TweenInfo.new(0.15), { Position = s and UDim2.new(1, -18, 0.5, -8) or UDim2.new(0, 2, 0.5, -8) }):Play() TweenService:Create(track, TweenInfo.new(0.15), { BackgroundColor3 = s and Theme.Accent or Theme.Element }):Play() if callback then callback(s) end end) return row end local function makeSlider(parent, labelText, mn, mx, def, order, fmt, cb) local row = new("Frame", { Size = UDim2.new(1, 0, 0, 52), BackgroundColor3 = Theme.Panel, BorderSizePixel = 0, LayoutOrder = order or 0, Parent = parent }) corner(row, 8) new("TextLabel", { Size = UDim2.new(0.7, 0, 0, 18), Position = UDim2.new(0, 12, 0, 8), BackgroundTransparency = 1, Text = labelText, TextColor3 = Theme.Text, Font = Enum.Font.Gotham, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left, Parent = row }) local vl = new("TextLabel", { Size = UDim2.new(0.3, -12, 0, 18), Position = UDim2.new(0.7, 0, 0, 8), BackgroundTransparency = 1, Text = fmt and fmt(def) or tostring(def), TextColor3 = Theme.Accent, Font = Enum.Font.GothamBold, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Right, Parent = row }) local tr = new("TextButton", { Size = UDim2.new(1, -24, 0, 6), Position = UDim2.new(0, 12, 0, 36), BackgroundColor3 = Theme.Element, Text = "", AutoButtonColor = false, BorderSizePixel = 0, Parent = row }) corner(tr, 3) local fl = new("Frame", { Size = UDim2.new(0, 0, 1, 0), BackgroundColor3 = Theme.Accent, BorderSizePixel = 0, Parent = tr }) corner(fl, 3) local th = new("Frame", { Size = UDim2.new(0, 14, 0, 14), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(0, 0, 0.5, 0), BackgroundColor3 = Theme.White, BorderSizePixel = 0, Parent = tr }) corner(th, 7) local v = def local d = false local function u(i) local r = math.clamp((i.Position.X - tr.AbsolutePosition.X) / tr.AbsoluteSize.X, 0, 1) v = mn + (mx - mn) * r fl.Size = UDim2.new(r, 0, 1, 0) th.Position = UDim2.new(r, 0, 0.5, 0) vl.Text = fmt and fmt(v) or string.format("%.2f", v) if cb then cb(v) end end tr.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then d = true; u(i) end end) tr.InputChanged:Connect(function(i) if d and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then u(i) end end) UserInputService.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then d = false end end) local ir = (def - mn) / (mx - mn) fl.Size = UDim2.new(ir, 0, 1, 0) th.Position = UDim2.new(ir, 0, 0.5, 0) return row end -- ============================================================ -- FARM PAGE -- ============================================================ sectionLabel(farmPage, "šŸ‡µšŸ‡° Haal Chaal", 1) local statusCard = new("Frame", { Size = UDim2.new(1, 0, 0, 70), BackgroundColor3 = Theme.Panel, BorderSizePixel = 0, LayoutOrder = 2, Parent = farmPage }) corner(statusCard, 8) local statusDot = new("Frame", { Size = UDim2.new(0, 8, 0, 8), Position = UDim2.new(0, 14, 0, 20), BackgroundColor3 = Theme.TextDim, BorderSizePixel = 0, Parent = statusCard }) corner(statusDot, 4) local statusText = new("TextLabel", { Size = UDim2.new(0.7, 0, 0, 16), Position = UDim2.new(0, 30, 0, 16), BackgroundTransparency = 1, Text = "So raha hai bhai", TextColor3 = Theme.Text, Font = Enum.Font.GothamBold, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left, Parent = statusCard }) local statusSub = new("TextLabel", { Size = UDim2.new(1, -30, 0, 16), Position = UDim2.new(0, 30, 0, 34), BackgroundTransparency = 1, Text = "Kuch nahi ho raha abhi", TextColor3 = Theme.TextDim, Font = Enum.Font.Gotham, TextSize = 11, TextXAlignment = Enum.TextXAlignment.Left, Parent = statusCard }) local tripLabel = new("TextLabel", { Size = UDim2.new(0.3, -14, 0, 16), Position = UDim2.new(0.7, 0, 0, 20), BackgroundTransparency = 1, Text = "0 trips", TextColor3 = Theme.Accent, Font = Enum.Font.GothamBold, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Right, Parent = statusCard }) local actionBtn = new("TextButton", { Size = UDim2.new(1, 0, 0, 46), BackgroundColor3 = Theme.Accent, Text = "START (BISMILLAH)", TextColor3 = Theme.White, Font = Enum.Font.GothamBold, TextSize = 14, AutoButtonColor = false, BorderSizePixel = 0, LayoutOrder = 3, Parent = farmPage }) corner(actionBtn, 8) sectionLabel(farmPage, "Live Debug", 4) local debugCard = new("Frame", { Size = UDim2.new(1, 0, 0, 118), BackgroundColor3 = Theme.Panel, BorderSizePixel = 0, LayoutOrder = 5, Parent = farmPage }) corner(debugCard, 8) local function debugRow(parent, y, key) new("TextLabel", { Size = UDim2.new(0.5, 0, 0, 18), Position = UDim2.new(0, 14, 0, y), BackgroundTransparency = 1, Text = key, TextColor3 = Theme.TextDim, Font = Enum.Font.Gotham, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Left, Parent = parent }) return new("TextLabel", { Size = UDim2.new(0.5, -28, 0, 18), Position = UDim2.new(0.5, 14, 0, y), BackgroundTransparency = 1, Text = "—", TextColor3 = Theme.Text, Font = Enum.Font.Gotham, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Right, Parent = parent }) end local winPadVal = debugRow(debugCard, 14, "WinPad center") local padTopVal = debugRow(debugCard, 36, "Pad top (target)") local liveDistVal = debugRow(debugCard, 58, "Distance to top") local phaseVal = debugRow(debugCard, 80, "Phase") padTopVal.TextColor3 = Theme.Success liveDistVal.TextColor3 = Theme.Warning phaseVal.TextColor3 = Theme.Accent -- ============================================================ -- SETTINGS PAGE -- ============================================================ sectionLabel(settingsPage, "šŸļø Rickshaw Settings", 1) makeSlider(settingsPage, "Speed (studs/sec)", 3, 1000, Config.Speed, 2, function(v) return string.format("%d", v) end, function(v) Config.Speed = math.floor(v) end) makeSlider(settingsPage, "Chai Break (sec at WinPad)", 0.5, 10, Config.WaitAtPad, 3, function(v) return string.format("%.1fs", v) end, function(v) Config.WaitAtPad = v end) makeSlider(settingsPage, "Arrive Distance", 2, 15, Config.ArriveDist, 4, function(v) return string.format("%d", v) end, function(v) Config.ArriveDist = math.floor(v) end) sectionLabel(settingsPage, "šŸ›¬ Landing Settings", 5) makeSlider(settingsPage, "Hover Height (above pad)", 0, 15, Config.HoverHeight, 6, function(v) return string.format("%d", v) end, function(v) Config.HoverHeight = math.floor(v) end) makeSlider(settingsPage, "Approach Height (fly-over)", 3, 40, Config.ApproachHeight, 7, function(v) return string.format("%d", v) end, function(v) Config.ApproachHeight = math.floor(v) end) sectionLabel(settingsPage, "šŸ§• Bypass Settings", 8) makeToggle(settingsPage, "Noclip (Chappal Mode)", Config.Noclip, 9, function(v) Config.Noclip = v end) makeToggle(settingsPage, "Force Snap onto pad top", Config.ForceSnap, 10, function(v) Config.ForceSnap = v end) sectionLabel(settingsPage, "šŸ•Œ Behaviour", 11) makeToggle(settingsPage, "Wapas ghar aao? (Return home)", Config.ReturnHome, 12, function(v) Config.ReturnHome = v end) -- ============================================================ -- ABOUT PAGE -- ============================================================ sectionLabel(aboutPage, "Kya hai yeh?", 1) local aboutCard = new("Frame", { Size = UDim2.new(1, 0, 0, 180), BackgroundColor3 = Theme.Panel, BorderSizePixel = 0, LayoutOrder = 2, Parent = aboutPage }) corner(aboutCard, 8) new("TextLabel", { Size = UDim2.new(1, -28, 1, -20), Position = UDim2.new(0, 14, 0, 10), BackgroundTransparency = 1, Text = "Pad ke neeche atak jate the kyunki velocity seedha pad ke center ki taraf jati thi. Ab hum 3 phase mein chalte hain:\n\n1. UPAR uthte hain (rise above pad)\n2. HORIZONTAL udte hain pad ke upar (at safe height)\n3. NEECHE utarte hain pad ki top surface pe\n\nPlus: pad ki CanCollide locally off karte hain aur final snap karte hain taake kabhi under na phaso.\n\nApproach Height badhao agar pad bahut oonchi hai.", TextColor3 = Theme.Text, Font = Enum.Font.Gotham, TextSize = 12, TextWrapped = true, TextYAlignment = Enum.TextYAlignment.Top, TextXAlignment = Enum.TextXAlignment.Left, Parent = aboutCard }) sectionLabel(aboutPage, "Pakistani Tips", 3) local tipsCard = new("Frame", { Size = UDim2.new(1, 0, 0, 140), BackgroundColor3 = Theme.Panel, BorderSizePixel = 0, LayoutOrder = 4, Parent = aboutPage }) corner(tipsCard, 8) new("TextLabel", { Size = UDim2.new(1, -28, 1, -16), Position = UDim2.new(0, 14, 0, 8), BackgroundTransparency = 1, Text = "• Pad ke neeche phas gaye? Approach Height badha do (15-20)\n• Upar nahi uthta? Speed badhao ya Hover Height check karo\n• Win register nahi ho raha? Chai Break 3s kar do\n• Emergency mein Force Snap ON rakho\n• Speed 10 = IY equivalent, sabse safe\n• Speed 30+ = Babar Azam ki tarah out", TextColor3 = Theme.TextDim, Font = Enum.Font.Gotham, TextSize = 12, TextWrapped = true, TextYAlignment = Enum.TextYAlignment.Top, TextXAlignment = Enum.TextXAlignment.Left, Parent = tipsCard }) sectionLabel(aboutPage, "Credits", 5) local creditsCard = new("Frame", { Size = UDim2.new(1, 0, 0, 70), BackgroundColor3 = Theme.Panel, BorderSizePixel = 0, LayoutOrder = 6, Parent = aboutPage }) corner(creditsCard, 8) new("TextLabel", { Size = UDim2.new(1, -28, 1, -16), Position = UDim2.new(0, 14, 0, 8), BackgroundTransparency = 1, Text = "Biryani > Pulao šŸ›\nChai is life ā˜•\nPakistan Zindabad šŸ‡µšŸ‡°", TextColor3 = Theme.Text, Font = Enum.Font.Gotham, TextSize = 13, TextWrapped = true, TextYAlignment = Enum.TextYAlignment.Top, TextXAlignment = Enum.TextXAlignment.Left, Parent = creditsCard }) -- ============================================================ -- NAV -- ============================================================ local navButtons = {} local currentPage = nil local function selectPage(name) for n, btn in pairs(navButtons) do local a = (n == name) btn.BackgroundColor3 = a and Theme.Element or Theme.Sidebar btn.Bar.BackgroundColor3 = a and Theme.Accent or Theme.Sidebar btn.Lbl.TextColor3 = a and Theme.Text or Theme.TextDim end farmPage.Visible = (name == "Farm") settingsPage.Visible = (name == "Settings") aboutPage.Visible = (name == "About") headerTitle.Text = name == "About" and "About šŸ‡µšŸ‡°" or name currentPage = name end local function makeNavButton(name, text, order) local btn = new("TextButton", { Name = name, Size = UDim2.new(1, 0, 0, 34), BackgroundColor3 = Theme.Sidebar, Text = "", AutoButtonColor = false, BorderSizePixel = 0, LayoutOrder = order, Parent = nav }) corner(btn, 6) local bar = new("Frame", { Name = "Bar", Size = UDim2.new(0, 3, 0, 16), Position = UDim2.new(0, 0, 0.5, -8), BackgroundColor3 = Theme.Sidebar, BorderSizePixel = 0, Parent = btn }) corner(bar, 2) local lbl = new("TextLabel", { Name = "Lbl", Size = UDim2.new(1, -20, 1, 0), Position = UDim2.new(0, 14, 0, 0), BackgroundTransparency = 1, Text = text, TextColor3 = Theme.TextDim, Font = Enum.Font.Gotham, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left, Parent = btn }) btn.MouseEnter:Connect(function() if currentPage ~= name then btn.BackgroundColor3 = Theme.Element end end) btn.MouseLeave:Connect(function() if currentPage ~= name then btn.BackgroundColor3 = Theme.Sidebar end end) btn.MouseButton1Click:Connect(function() selectPage(name) end) navButtons[name] = btn end makeNavButton("Farm", "Farm 🚜", 1) makeNavButton("Settings", "Settings āš™ļø", 2) makeNavButton("About", "About šŸ‡µšŸ‡°", 3) -- Drag do local dr, ds, sp = false, nil, nil header.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dr = true; ds = i.Position; sp = main.Position end end) UserInputService.InputChanged:Connect(function(i) if not dr then return end if i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch then local d = i.Position - ds main.Position = UDim2.new(sp.X.Scale, sp.X.Offset + d.X, sp.Y.Scale, sp.Y.Offset + d.Y) end end) UserInputService.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dr = false end end) end closeBtn.MouseButton1Click:Connect(function() main.Visible = not main.Visible end) -- ============================================================ -- UI UPDATES -- ============================================================ local function setStatus(t, s, c) statusText.Text = t if s then statusSub.Text = s end if c then statusDot.BackgroundColor3 = c end end local function setBtn(r) if r then actionBtn.BackgroundColor3 = Theme.Danger actionBtn.Text = "STOP (YA ALLAH)" else actionBtn.BackgroundColor3 = Theme.Accent actionBtn.Text = "START (BISMILLAH)" end end local function updateTrips() tripLabel.Text = State.Trips .. " trips" end local function getWinPad() local map = workspace:FindFirstChild("Map") if not map then return nil, "Map nahi mila" end local pad = map:FindFirstChild("WinPad") if not pad then return nil, "WinPad nahi mila" end if not pad:IsA("BasePart") then return nil, "Not a BasePart" end return pad end local function getPadTop(pad) return pad.Position + Vector3.new(0, pad.Size.Y / 2 + Config.HoverHeight, 0) end -- Live debug updater task.spawn(function() while gui.Parent do local p, e = getWinPad() if p then winPadVal.Text = string.format("(%.0f, %.0f, %.0f)", p.Position.X, p.Position.Y, p.Position.Z) winPadVal.TextColor3 = Theme.Success local top = getPadTop(p) padTopVal.Text = string.format("(%.0f, %.0f, %.0f)", top.X, top.Y, top.Z) local char = player.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") if hrp then local d = (hrp.Position - top).Magnitude liveDistVal.Text = string.format("%.1f studs", d) liveDistVal.TextColor3 = d <= Config.ArriveDist and Theme.Success or Theme.Warning end else winPadVal.Text = e or "—" winPadVal.TextColor3 = Theme.Danger end task.wait(0.2) end end) -- ============================================================ -- NOCLIP -- ============================================================ local savedCollide = {} local function noclipOn(char) savedCollide = {} for _, p in ipairs(char:GetDescendants()) do if p:IsA("BasePart") then savedCollide[p] = p.CanCollide p.CanCollide = false end end end local function noclipOff() for p, c in pairs(savedCollide) do if p and p.Parent then p.CanCollide = c end end savedCollide = {} end local function noclipRefresh(char) if not Config.Noclip then return end for _, p in ipairs(char:GetDescendants()) do if p:IsA("BasePart") and p.CanCollide then savedCollide[p] = true p.CanCollide = false end end end -- Also disable the pad's collision locally during approach local function disablePadCollision() local p = getWinPad() if p then savedCollide[p] = p.CanCollide p.CanCollide = false end end -- ============================================================ -- CORE: SINGLE-PHASE VELOCITY MOVE -- ============================================================ -- Moves to a single waypoint using velocity (server-consistent). -- Returns true if reached within tolerance. local function velocityMoveTo(targetPos, tolerance) tolerance = tolerance or Config.ArriveDist local char = player.Character if not char then return false end local hrp = char:FindFirstChild("HumanoidRootPart") local hum = char:FindFirstChildOfClass("Humanoid") if not hrp or not hum then return false end if hum.Health <= 0 then return false end local startTime = tick() local lastProgress = tick() local lastDist = (targetPos - hrp.Position).Magnitude while State.Running and State.ActiveMove do RunService.Heartbeat:Wait() local curPos = hrp.Position local diff = targetPos - curPos local dist = diff.Magnitude if dist <= tolerance then hrp.AssemblyLinearVelocity = Vector3.zero return true end if dist < lastDist - 0.05 then lastProgress = tick() lastDist = dist end -- Speed scaling near target local speed = Config.Speed if dist < 12 then speed = math.max(Config.Speed * (dist / 12), 2) end local moveDir = diff.Unit hrp.AssemblyLinearVelocity = moveDir * speed noclipRefresh(char) -- Stall escape if tick() - lastProgress > 3 then local nudge = moveDir * math.min(6, dist) hrp.CFrame = CFrame.new(curPos + nudge) * (hrp.CFrame - hrp.CFrame.Position) lastProgress = tick() end if tick() - startTime > Config.TimeOut then return false end if hum.Health <= 0 or not hrp.Parent then return false end end return false end -- ============================================================ -- CORE: THREE-PHASE APPROACH (Rise → Horizontal → Descend) -- ============================================================ local function flyToTarget(targetPos) local char = player.Character if not char then return false, "Char nahi hai" end local hrp = char:FindFirstChild("HumanoidRootPart") local hum = char:FindFirstChildOfClass("Humanoid") if not hrp or not hum then return false, "HRP/Humanoid nahi" end if hum.Health <= 0 then return false, "Mar gaya" end -- Pre-step: noclip + disable pad collision locally if Config.Noclip then noclipOn(char) end disablePadCollision() -- Physics state local prevPlatform = hum.PlatformStand local prevState = hum:GetState() hum.PlatformStand = true pcall(function() hum:ChangeState(Enum.HumanoidStateType.Physics) end) State.ActiveMove = true -- Compute safe altitude (above both us and the target) local startPos = hrp.Position local safeY = math.max(startPos.Y, targetPos.Y) + Config.ApproachHeight -- Build the three waypoints local riseWP = Vector3.new(startPos.X, safeY, startPos.Z) local horizontalWP = Vector3.new(targetPos.X, safeY, targetPos.Z) local descendWP = Vector3.new(targetPos.X, targetPos.Y, targetPos.Z) local reached = false local reason = "?" -- Phase 1: RISE phaseVal.Text = "1. Upar uthte hain" setStatus("Phase 1/3: Upar", "Pad se upar ja rahe hain", Theme.Warning) if velocityMoveTo(riseWP, 3) then task.wait(Config.PhaseGap) -- Phase 2: HORIZONTAL if State.Running then phaseVal.Text = "2. Horizontal udaan" setStatus("Phase 2/3: Udte hain", "Pad ke upar pahunchenge", Theme.Accent) if velocityMoveTo(horizontalWP, 4) then task.wait(Config.PhaseGap) -- Phase 3: DESCEND if State.Running then phaseVal.Text = "3. Neeche utarte hain" setStatus("Phase 3/3: Neeche", "Pad ke top pe land karenge", Theme.Success) if velocityMoveTo(descendWP, 3) then reached = true reason = "Pahunch gaya, Mashallah" else reason = "Descend fail" end end else reason = "Horizontal fail" end end else reason = "Rise fail" end -- Stop velocity, disable physics mode if hrp and hrp.Parent then hrp.AssemblyLinearVelocity = Vector3.zero end -- Force final snap onto pad top if reached and Config.ForceSnap and hrp and hrp.Parent then local finalCF = CFrame.new(targetPos) -- preserve rotation hrp.CFrame = finalCF * (hrp.CFrame - hrp.CFrame.Position) phaseVal.Text = "āœ“ Snap ho gaya" -- small settle task.wait(0.15) end State.ActiveMove = false hum.PlatformStand = prevPlatform pcall(function() hum:ChangeState(prevState) end) if Config.Noclip then noclipOff() end return reached, reason end -- ============================================================ -- FARM LOOP -- ============================================================ local function stopFarm() State.Running = false State.ActiveMove = false if State.LoopThread then pcall(function() task.cancel(State.LoopThread) end) State.LoopThread = nil end noclipOff() local c = player.Character if c then local h = c:FindFirstChildOfClass("Humanoid") if h then h.PlatformStand = false end local r = c:FindFirstChild("HumanoidRootPart") if r then r.AssemblyLinearVelocity = Vector3.zero end end phaseVal.Text = "Idle" setBtn(false) setStatus("Bas, ruk gaya", "Ya Allah, phir se chalu karo", Theme.TextDim) end local function startFarm() if State.Running then return end local char = player.Character or player.CharacterAdded:Wait() local hrp = char:WaitForChild("HumanoidRootPart", 5) if not hrp then setStatus("Ya Allah!", "HRP nahi mila", Theme.Danger) return end State.Running = true State.HomeCFrame = hrp.CFrame setBtn(true) setStatus("Bismillah...", "Shuru kar rahe hain", Theme.Warning) State.LoopThread = task.spawn(function() while State.Running do local c = player.Character local rp = c and c:FindFirstChild("HumanoidRootPart") local hm = c and c:FindFirstChildOfClass("Humanoid") if not rp or not hm or hm.Health <= 0 then task.wait(0.5) else local pad, e = getWinPad() if not pad then setStatus("WinPad ka intezar", e or "Nahi mila", Theme.Warning) task.wait(1) else -- Aim at TOP of pad, not center local topPos = getPadTop(pad) local arrived, reason = flyToTarget(topPos) if not arrived then if State.Running then setStatus("Retry (" .. (reason or "?") .. ")", "Approach Height badhao agar phas rahe ho", Theme.Warning) task.wait(1) end else setStatus("Pahunch gaya, Mashallah!", "Win claim ho raha hai...", Theme.Success) task.wait(0.4) task.wait(Config.WaitAtPad) State.Trips = State.Trips + 1 updateTrips() if State.Running and Config.ReturnHome and State.HomeCFrame then setStatus("Wapas ghar", "Ghar wapsi, Inshallah", Theme.Accent) flyToTarget(State.HomeCFrame.Position) end task.wait(0.3) end end end end end) end actionBtn.MouseButton1Click:Connect(function() if State.Running then stopFarm() else startFarm() end end) player.CharacterAdded:Connect(function() if State.Running then task.wait(1) local c = player.Character local hrp = c and c:FindFirstChild("HumanoidRootPart") if hrp then State.HomeCFrame = hrp.CFrame end end end) gui.AncestryChanged:Connect(function(_, p) if not p then State.Running = false State.ActiveMove = false if State.LoopThread then pcall(function() task.cancel(State.LoopThread) end) end end end) selectPage("Farm") setStatus("So raha hai bhai", "Kuch nahi ho raha abhi", Theme.TextDim) updateTrips() phaseVal.Text = "Idle" print("[AutoFarm] āœ“ v8 ready. Three-phase approach, Allhamdulillah.") end) if not ok then warn("[AutoFarm] *** ERROR ***", tostring(err)) warn(debug.traceback()) pcall(function() local pg = game:GetService("Players").LocalPlayer:FindFirstChild("PlayerGui") if not pg then return end local eg = Instance.new("ScreenGui") eg.Name = "AutoFarmError"; eg.ResetOnSpawn = false; eg.Parent = pg local f = Instance.new("Frame") f.Size = UDim2.new(0, 520, 0, 130); f.Position = UDim2.new(0.5, -260, 0, 40) f.BackgroundColor3 = Color3.fromRGB(40, 15, 15); f.BorderSizePixel = 0; f.Parent = eg local c = Instance.new("UICorner"); c.CornerRadius = UDim.new(0, 8); c.Parent = f local s = Instance.new("UIStroke"); s.Color = Color3.fromRGB(230, 75, 75); s.Thickness = 2; s.Parent = f local t = Instance.new("TextLabel") t.Size = UDim2.new(1, -20, 0, 30); t.Position = UDim2.new(0, 10, 0, 8) t.BackgroundTransparency = 1; t.Text = "šŸ‡µšŸ‡° AutoFarm Error — Output dekho" t.TextColor3 = Color3.fromRGB(255, 120, 120); t.Font = Enum.Font.GothamBold t.TextSize = 14; t.TextXAlignment = Enum.TextXAlignment.Left; t.Parent = f local m = Instance.new("TextLabel") m.Size = UDim2.new(1, -20, 0, 80); m.Position = UDim2.new(0, 10, 0, 42) m.BackgroundTransparency = 1; m.Text = tostring(err) m.TextColor3 = Color3.fromRGB(220, 220, 220); m.Font = Enum.Font.Code m.TextSize = 12; m.TextWrapped = true; m.TextXAlignment = Enum.TextXAlignment.Left m.TextYAlignment = Enum.TextYAlignment.Top; m.Parent = f end) end