-- Twisted - probe autofarm -- place 14170731342 / gameId 2251388500 -- -- One job: wait for a storm, park on its path, drop tower probes in pairs, -- hold through the pass, cash out when the readings stop, restock. -- -- RightShift hides the readout. X unloads the script. local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local Lighting = game:GetService("Lighting") local LP = Players.LocalPlayer -- playable map bound; storms past this are off the map and not worth chasing local MAP_LIMIT = 30000 local EDGE_PAD = 350 -- stay this far inside the real map edge local MAP = { minX = -MAP_LIMIT, maxX = MAP_LIMIT, minZ = -MAP_LIMIT, maxZ = MAP_LIMIT } do local mr = workspace:FindFirstChild("map_related") local land = mr and mr:FindFirstChild("landscape") local ok, cf, size = pcall(function() return land:GetBoundingBox() end) if ok and cf and size and size.X > 1000 and size.Z > 1000 then MAP.minX, MAP.maxX = cf.Position.X - size.X / 2, cf.Position.X + size.X / 2 MAP.minZ, MAP.maxZ = cf.Position.Z - size.Z / 2, cf.Position.Z + size.Z / 2 end end local function inBounds(x, z, pad) local p = pad or 0 return x >= MAP.minX + p and x <= MAP.maxX - p and z >= MAP.minZ + p and z <= MAP.maxZ - p end print(string.format("[MAP] safe X %.0f..%.0f Z %.0f..%.0f", MAP.minX + EDGE_PAD, MAP.maxX - EDGE_PAD, MAP.minZ + EDGE_PAD, MAP.maxZ - EDGE_PAD)) if getgenv().TW_FARM then pcall(function() getgenv().TW_FARM.alive = false for _, c in ipairs(getgenv().TW_FARM.conns or {}) do pcall(function() c:Disconnect() end) end if getgenv().TW_FARM.gui then getgenv().TW_FARM.gui:Destroy() end end) end ------------------------------------------------------------------------ -- theme ------------------------------------------------------------------------ local C = { -- Solana hub palette bg = Color3.fromRGB(13, 11, 20), surface = Color3.fromRGB(18, 16, 27), raised = Color3.fromRGB(31, 27, 48), line = Color3.fromRGB(42, 38, 64), text = Color3.fromRGB(232, 230, 242), dim = Color3.fromRGB(124, 119, 146), faint = Color3.fromRGB(78, 73, 102), accent = Color3.fromRGB(153, 69, 255), accent2 = Color3.fromRGB(20, 241, 149), good = Color3.fromRGB(20, 241, 149), warn = Color3.fromRGB(232, 196, 104), bad = Color3.fromRGB(255, 92, 122), } ------------------------------------------------------------------------ -- anti-cheat: client-side CheatHandler, three hooks ------------------------------------------------------------------------ local function stripAC() local killed = 0 local ch = LP.Character local hum = ch and ch:FindFirstChildOfClass("Humanoid") local pg = LP:FindFirstChildOfClass("PlayerGui") local function sweep(sig) if not sig then return end for _, c in ipairs(getconnections(sig)) do local ok, src = pcall(function() return debug.info(c.Function, "s") end) if ok and tostring(src):find("CheatHandler", 1, true) then pcall(function() c:Disable() end) pcall(function() c:Disconnect() end) killed = killed + 1 end end end sweep(hum and hum.Changed) sweep(ch and ch.DescendantAdded) sweep(pg and pg.ChildAdded) return killed end local ENV = { alive = true, gui = nil, conns = {}, running = true, busy = false, state = "starting", runs = 0, placed = 0, load = 0, lead = 0, clear = 0, eta = 0, killzone = 0, hp = 0, hourly = 0, speed = 0, collectTime = 0, grace = 4, dist = 0, winds = 0, lateral = 0, closest = 0, moneyStart = 0, esp = true, probeEsp = true, fullbright = true, antiafk = true, holdStill = false, parkPos = nil, lastClear = 0, justDied = false, vehLogged = false, dead = false, deathSerial = 0, deathAt = 0, cooldownUntil = 0, leadBump = 0, scoutFails = 0, stormLock = nil, stormSkip = {}, probeTag = nil, } stripAC() for _, d in ipairs(workspace:GetDescendants()) do if (d.Name == "TW_STORM" or d.Name == "TW_PROBE") and d:IsA("BillboardGui") then pcall(function() d:Destroy() end) end end getgenv().TW_FARM = ENV ------------------------------------------------------------------------ -- helpers ------------------------------------------------------------------------ local function character() local ch = LP.Character if not ch or not ch.Parent then return nil end return ch end local function root() local ch = character() return ch and ch:FindFirstChild("HumanoidRootPart") or nil end local function humanoid() local ch = character() return ch and ch:FindFirstChildOfClass("Humanoid") or nil end local function new(class, props, parent) local o = Instance.new(class) for k, v in pairs(props) do o[k] = v end o.Parent = parent return o end local function corner(obj, r) return new("UICorner", { CornerRadius = UDim.new(0, r or 6) }, obj) end local function moneyNow() local ps = LP:FindFirstChild("player_stats") local m = ps and ps:FindFirstChild("money") return m and m.Value or 0 end -- a run belongs to the character that started it; a death invalidates it local function aliveSince(serial) local hum = humanoid() return not ENV.dead and ENV.deathSerial == serial and hum ~= nil and hum.Health > 0 end ------------------------------------------------------------------------ -- probes ------------------------------------------------------------------------ -- tower probe only: it pays the most per intercept, so nothing cheaper gets -- bought. if the wallet cannot cover one, the cycle waits. local CHEAPEST = 1250 local WANT = 4 -- stock minimum for a fresh run local PLACE_MAX = 4 -- one rack = four tower probes local PLACE_PER_PROBE = 1.3 -- measured: attach + activate + confirm local FLAT_SAMPLES = 4 -- ticks (~1.6 s) of unchanged readings = done local GRACE_SECONDS = 2 -- extra seconds after completion, before collection -- the game names cars and probes after the owner's UserId, so target our id -- directly; a nearest-Scout scan picked up other players' cars in busy servers local function ourCarId() local pr = workspace:FindFirstChild("player_related") local cars = pr and pr:FindFirstChild("cars") local uid = tostring(LP.UserId) local mine = cars and cars:FindFirstChild(uid) if not mine then return nil end local info = mine:FindFirstChild("info") if info then local ok, data = pcall(require, info) if ok and type(data) == "table" and data.Vehicle and data.Vehicle.Model == "Scout" then return uid end return nil end return uid end local function deployedProbes() local pr = workspace:FindFirstChild("player_related") local pf = pr and pr:FindFirstChild("probes") if not pf then return {} end local out = {} local id = tostring(LP.UserId) for _, m in ipairs(pf:GetChildren()) do if m.Name == id then out[#out + 1] = m end end return out end -- nearest freshly placed probe at our feet only counts if it is ours local function resolveProbeTag() local pr = workspace:FindFirstChild("player_related") local pf = pr and pr:FindFirstChild("probes") local hrp = root() if not (pf and hrp) then return nil end local id = tostring(LP.UserId) local best, bd = nil, math.huge for _, m in ipairs(pf:GetChildren()) do if m.Name == id then local part = m:FindFirstChildWhichIsA("BasePart", true) if part then local d = (part.Position - hrp.Position).Magnitude if d < bd then best, bd = m.Name, d end end end end if best then ENV.probeTag = best end return best end local function probeTools() local n = 0 local ch = character() for _, src in ipairs({ LP:FindFirstChildOfClass("Backpack"), ch }) do if src then for _, t in ipairs(src:GetChildren()) do if t:IsA("Tool") and (t.Name:find("Probe") or t.Name:find("Pod")) then n = n + 1 end end end end return n end local function bestProbeTool() local bp = LP:FindFirstChildOfClass("Backpack") local ch = character() for _, src in ipairs({ bp, ch }) do if src then local t = src:FindFirstChild("Twistex Tower Probe") if t and t:IsA("Tool") then return t end end end for _, src in ipairs({ bp, ch }) do if src then for _, t in ipairs(src:GetChildren()) do if t:IsA("Tool") and (t.Name:find("Probe") or t.Name:find("Pod")) then return t end end end end return nil end -- the Scout is the car that carries the probe rack; the info module names it local function scoutSpawned() return ourCarId() ~= nil end local function restock() local had = probeTools() if moneyNow() >= CHEAPEST then local remotes = ReplicatedStorage:FindFirstChild("remotes") local rf = remotes and remotes:FindFirstChild("buy_probes") if rf then for _, name in ipairs({ "91TERRITORY-SCOUT", "Scout" }) do pcall(function() rf:InvokeServer({ vehicle = name, probe = "Twistex Tower Probe" }) end) task.wait(0.3) if probeTools() > had then return true end end end end -- idempotent: do not stack duplicate vehicles. if a Scout already exists, -- respawning it is how the rack is refreshed; if it does not, spawn one. local events = ReplicatedStorage:FindFirstChild("events") local ev = events and events:FindFirstChild("spawn_vehicle") if ev and not scoutSpawned() then pcall(function() ev:FireServer("91TERRITORY-SCOUT") end) for _ = 1, 10 do task.wait(0.5) if probeTools() > had then return true end end end return false end local function spawnScout() if scoutSpawned() then return true end local events = ReplicatedStorage:FindFirstChild("events") local ev = events and events:FindFirstChild("spawn_vehicle") if not ev then return false end pcall(function() ev:FireServer("91TERRITORY-SCOUT") end) for _ = 1, 12 do task.wait(0.5) if scoutSpawned() then return true end end return scoutSpawned() end ------------------------------------------------------------------------ -- storms ------------------------------------------------------------------------ local function tornadoPart(storm) local rot = storm and storm:FindFirstChild("rotation") return rot and (rot:FindFirstChild("TornadoPart") or rot:FindFirstChild("tornado_scan")) or nil end -- the funnel carries its own wind number; configs.winds is the storm's and -- reads 20-40 lower. the payout follows the funnel, so read that one. local function stormWinds(storm) local cfg = storm and storm:FindFirstChild("configs") if not cfg then return 0 end local tor = cfg:FindFirstChild("tornado") local tw = tor and tor:FindFirstChild("winds") local w = tw and tonumber(tw.Value) if w and w > 0 then return w end local sw = cfg:FindFirstChild("winds") return sw and tonumber(sw.Value) or 0 end -- a storm is only usable while its funnel is alive and inside the map bound local function stormValid(storm) if not storm or not storm.Parent then return false end local tp = tornadoPart(storm) if not tp then return false end return inBounds(tp.Position.X, tp.Position.Z, 0) end -- a storm cancelled at the boundary stays ignored for a minute, so the next -- one on the list gets picked instead of the same bad target local function stormUsable(storm) if not stormValid(storm) then return false end local untilT = ENV.stormSkip[storm] if untilT then if os.clock() < untilT then return false end ENV.stormSkip[storm] = nil end return true end local function pickStorm() local sr = workspace:FindFirstChild("storm_related") local st = sr and sr:FindFirstChild("storms") if not st then return nil end local best, bw = nil, -1 for _, m in ipairs(st:GetChildren()) do if stormUsable(m) then local w = stormWinds(m) if w > bw then best, bw = m, w end end end return best end -- the storm the farm is actually working. the readout and the ESP both follow -- this instead of re-picking, so the tag on screen is the funnel being farmed. local function activeStorm() if stormUsable(ENV.stormLock) then return ENV.stormLock end return pickStorm() end -- least-squares fit over every sample: the endpoint delta drags the bearing off -- whenever the core curves or wobbles local function trackPath(storm, samples, interval) local tp = tornadoPart(storm) if not tp then return nil end local pts = {} for i = 1, samples do pts[#pts + 1] = { pos = tp.Position, t = os.clock() } if i < samples then task.wait(interval) end end local n = #pts if n < 2 then return nil end local t0 = pts[1].t local sx, sz, st, stt, stx, stz = 0, 0, 0, 0, 0, 0 for _, p in ipairs(pts) do local dt = p.t - t0 sx = sx + p.pos.X sz = sz + p.pos.Z st = st + dt stt = stt + dt * dt stx = stx + dt * p.pos.X stz = stz + dt * p.pos.Z end local denom = n * stt - st * st if math.abs(denom) < 1e-6 then return { pos = pts[n].pos, dir = nil, speed = 0 } end local vx = (n * stx - st * sx) / denom local vz = (n * stz - st * sz) / denom local flat = Vector3.new(vx, 0, vz) if flat.Magnitude < 0.5 then return { pos = pts[n].pos, dir = nil, speed = 0 } end return { pos = pts[n].pos, dir = flat.Unit, speed = flat.Magnitude } end local function fitBearing(tp, count, gap) local pts = {} local t0 = os.clock() for i = 1, count do pts[#pts + 1] = { p = tp.Position, t = os.clock() - t0 } if i < count then task.wait(gap) end end local n = #pts if n < 2 then return nil, pts[n] and pts[n].p end local sx, sz, st, stt, stx, stz = 0, 0, 0, 0, 0, 0 for _, q in ipairs(pts) do local dt = q.t sx = sx + q.p.X sz = sz + q.p.Z st = st + dt stt = stt + dt * dt stx = stx + dt * q.p.X stz = stz + dt * q.p.Z end local denom = n * stt - st * st if math.abs(denom) < 1e-6 then return nil, pts[n].p end local vx = (n * stx - st * sx) / denom local vz = (n * stz - st * sz) / denom local v = Vector3.new(vx, 0, vz) if v.Magnitude < 0.5 then return nil, pts[n].p end return v.Unit, pts[n].p, v.Magnitude end -- forward declaration: lineUp centers on dry ground, but drySpot is defined -- below with the rest of the ground helpers local drySpot -- slide onto the core's line: fit a wider window, cancel the lateral error, -- then verify with a short second fit. two passes only - every extra pass -- spends seconds the core is already moving. local function lineUp(storm, passes) local tp = tornadoPart(storm) local hrp = root() if not (tp and hrp) then return end for pass = 1, passes or 2 do local dir, last -- a slow or wobbly core can fit as nil; retry the bearing twice before -- giving up on this pass instead of deploying on a bad line for attempt = 1, 3 do dir, last = fitBearing(tp, pass == 1 and 4 or 3, pass == 1 and 0.32 or 0.26) if dir and last then break end if attempt < 3 then ENV.state = "line-up nil - retrying bearing" print(string.format("[LINEUP] bearing nil - retry %d/2", attempt)) task.wait(0.3) end end if dir and last and hrp.Parent then local rel = Vector3.new(hrp.Position.X - last.X, 0, hrp.Position.Z - last.Z) local lateral = rel - dir * rel:Dot(dir) ENV.lateral = lateral.Magnitude if lateral.Magnitude > 3 then local fixed = Vector3.new(hrp.Position.X, 0, hrp.Position.Z) - lateral -- only slide if the centerline spot is dry; never trade a dry -- rack for a wet one just to cancel a small lateral error local gx, gz, gy = drySpot(fixed.X, fixed.Z) if gx and inBounds(gx, gz, EDGE_PAD) then hrp.CFrame = CFrame.new(gx, gy + 4, gz) end end end task.wait(0.08) end ENV.parkPos = hrp.CFrame end -- the funnel's width configuration carries the real size: base is the full -- width in studs, sfc the surface width. big cores need a wider berth. local function tornadoWidth(storm) local cfg = storm and storm:FindFirstChild("configs") local tor = cfg and cfg:FindFirstChild("tornado") local w = tor and tor:FindFirstChild("width") if not w then return 400 end local base = tonumber(w:GetAttribute("base")) local sfc = tonumber(w:GetAttribute("sfc")) local size = math.max(base or 0, (sfc or 0) * 2) if size <= 0 then return 400 end return size end -- Ervoila prints a killzone radius that is much smaller than the visual funnel -- width. the placement gets refused once the wind field reaches the rack, so -- the intercept distance has to clear the effect radius, not the model width. local function tornadoKillzone(storm) local cfg = storm and storm:FindFirstChild("configs") local tor = cfg and cfg:FindFirstChild("tornado") local sources = { tor, cfg, storm } for _, src in ipairs(sources) do if src then for _, name in ipairs({ "killzone", "kill_zone", "damage_zone" }) do local v = src:FindFirstChild(name) if v and tonumber(v.Value) then return tonumber(v.Value) end local a = tonumber(src:GetAttribute(name)) if a then return a end end end end return nil end -- threat classification from winds and funnel width; margins scale with it local function threatFrom(winds, width) if winds >= 170 or width >= 5000 then return "EXTREME" end if winds >= 130 or width >= 2500 then return "DANGEROUS" end if winds >= 90 or width >= 1000 then return "ELEVATED" end return "NORMAL" end local function threatScale(threat) if threat == "EXTREME" then return 2.0 end if threat == "DANGEROUS" then return 1.6 end if threat == "ELEVATED" then return 1.3 end return 1.0 end -- clearance beyond the funnel's own radius; grows with size and intensity local function safetyMargin(width, threat) local add = 0 if threat == "EXTREME" then add = 900 elseif threat == "DANGEROUS" then add = 500 elseif threat == "ELEVATED" then add = 250 end return 300 + add + width * 0.15 end ------------------------------------------------------------------------ -- ground: never park on water or in the void ------------------------------------------------------------------------ local rayParams = RaycastParams.new() rayParams.FilterType = Enum.RaycastFilterType.Exclude local function hitIsWater(hit) if not hit then return true end if hit.Material == Enum.Material.Water then return true end local map = workspace:FindFirstChild("map_related") local wt = map and map:FindFirstChild("water_table") if wt and hit.Instance:IsDescendantOf(wt) then return true end return hit.Instance.Name:lower():find("water") ~= nil end local function sampleGround(x, z) local ignore = {} if LP.Character then table.insert(ignore, LP.Character) end for _, n in ipairs({ "storm_related", "player_related" }) do local o = workspace:FindFirstChild(n) if o then table.insert(ignore, o) end end rayParams.FilterDescendantsInstances = ignore local hit = workspace:Raycast(Vector3.new(x, 900, z), Vector3.new(0, -2400, 0), rayParams) if not hit then return 0, true end return hit.Position.Y, hitIsWater(hit) end function drySpot(x, z) if not inBounds(x, z, EDGE_PAD) then return nil end local y, wet = sampleGround(x, z) if not wet then return x, z, y end for _, r in ipairs({ 60, 120, 200, 320, 480, 700, 1000 }) do for a = 0, 7 do local th = (a / 8) * math.pi * 2 local nx, nz = x + math.cos(th) * r, z + math.sin(th) * r if inBounds(nx, nz, EDGE_PAD) then local ny, nwet = sampleGround(nx, nz) if not nwet then return nx, nz, ny end end end end return nil end local function placeAt(x, z) local hrp = root() if not hrp then return false end local dx, dz, dy = drySpot(x, z) if not dx or not inBounds(dx, dz, EDGE_PAD) then return false end hrp.Anchored = false hrp.CFrame = CFrame.new(Vector3.new(dx, dy + 4, dz)) ENV.parkPos = hrp.CFrame return true end -- anchoring only the root still lets the core fling the rest of the rig, so -- every part gets pinned and its velocity zeroed while we hold local function anchorRig(on) local ch = character() if not ch then return end for _, p in ipairs(ch:GetDescendants()) do if p:IsA("BasePart") then if on then pcall(function() p.AssemblyLinearVelocity = Vector3.zero end) pcall(function() p.AssemblyAngularVelocity = Vector3.zero end) pcall(function() p.Anchored = true end) else pcall(function() p.Anchored = false end) end end end end local function holdAt() local hrp = root() local hum = humanoid() if not hrp or not hum or hum.Health <= 0 then return end ENV.parkPos = hrp.CFrame hrp.Anchored = true pcall(function() hum.PlatformStand = true end) pcall(function() hum.WalkSpeed = 0 end) -- measured: 100k max health holds for 5s+ with no server correction if hum.MaxHealth < 100000 then hum.MaxHealth = 100000 end hum.Health = hum.MaxHealth anchorRig(true) ENV.holdStill = true end local function releaseHold() ENV.holdStill = false local hrp = root() local hum = humanoid() anchorRig(false) if hum then pcall(function() hum.PlatformStand = false end) pcall(function() hum.WalkSpeed = 16 end) end if hrp then pcall(function() hrp.Anchored = false end) end end -- Ervoila aborts to a safe spot instead of trying to farm from a flung or -- boundary position. nearest spawn is the reliable fixed point on this map. local function goSafeZone() local hrp = root() if not hrp then return end local pos = nil local ok, loc = pcall(function() return workspace:FindFirstChildWhichIsA("SpawnLocation", true) end) if ok and loc then pos = loc.Position + Vector3.new(0, 6, 0) elseif inBounds(0, 0, 0) then pos = Vector3.new(0, 60, 0) end if not pos then return end pcall(function() hrp.Anchored = false end) pcall(function() hrp.CFrame = CFrame.new(pos) end) ENV.parkPos = nil ENV.holdStill = false end ------------------------------------------------------------------------ -- deploy: two at a time ------------------------------------------------------------------------ -- EquipTool only holds one tool, but parenting a Tool straight to the character -- attaches it anyway - so several can be held and pressed in the same frame. -- Measured: 2 down in ~1.8 s, 4 in ~3.6 s. local function deployChunk(n, serial) local ch = character() local hum = ch and ch:FindFirstChildOfClass("Humanoid") if not (hum and ch) or not aliveSince(serial) then return 0 end local t0 = os.clock() pcall(function() hum:UnequipTools() end) task.wait(0.1) local before = #deployedProbes() local tools = {} for _ = 1, n do if not aliveSince(serial) then break end local t = bestProbeTool() if not t then break end pcall(function() t.Parent = ch end) tools[#tools + 1] = t end if #tools == 0 then return 0 end task.wait(0.2) for _, t in ipairs(tools) do -- death invalidates this deploy; never press another probe after it if not aliveSince(serial) then break end pcall(function() t:Activate() end) end local function consumed() local c = 0 for _, t in ipairs(tools) do if t.Parent == nil then c = c + 1 end end return c end local function placedCount() return math.max(#deployedProbes() - before, consumed(), 0) end local want = #tools local deadline = os.clock() + 3.5 while os.clock() < deadline do if not aliveSince(serial) then break end if placedCount() >= want then break end task.wait(0.2) end if placedCount() < want and aliveSince(serial) then for _, t in ipairs(tools) do if t.Parent == ch then if not aliveSince(serial) then break end pcall(function() t:Activate() end) task.wait(0.4) end end end pcall(function() hum:UnequipTools() end) ENV.lastDeploy = os.clock() - t0 return placedCount() end -- Ervoila logs a missed batch as "server lag" and re-queues it. cap the number -- of attempts so a stubborn batch cannot over-place past the observed ceiling. local function deployProbes(n, serial) local placed, attempts = 0, 0 while placed < n and attempts < 3 do if not aliveSince(serial) then break end attempts = attempts + 1 local got = deployChunk(math.min(2, n - placed), serial) placed = placed + got if got == 0 then ENV.state = "missed placement (server lag), retrying" print("[PLACEMENT] missed placement (server lag), retrying") task.wait(0.9) end task.wait(0.1) end return placed end ------------------------------------------------------------------------ -- collect: sweep, then mop up ------------------------------------------------------------------------ -- the part a probe hangs its label and its prompt off: probePart when the game -- names it that, else the prompt part, else any BasePart it owns local function probeAnchor(probe) local a = probe:FindFirstChild("probePart") if a and a:IsA("BasePart") then return a end local b = probe:FindFirstChild("PromptPart") if b and b:IsA("BasePart") then return b end return probe:FindFirstChildWhichIsA("BasePart", true) end -- Probe pickup: one teleport to the cluster, then every prompt fires in the -- same frame. Walking probe to probe was the slow part after a storm. local function collectProbes(serial) if ENV.dead then return 0 end if serial and not aliveSince(serial) then return 0 end local before = #deployedProbes() if before == 0 then ENV.lastCollectLeft = 0 return 0 end -- needs a character to stand next to the probe; called from a death -- recovery it returns cleanly and the probes are collected next cycle local hrp = root() local hum = humanoid() if not hrp then ENV.lastCollectLeft = #deployedProbes() return before - #deployedProbes() end local t0 = os.clock() local VIM = game:GetService("VirtualInputManager") local function promptOf(probe) return probe:FindFirstChildWhichIsA("ProximityPrompt", true) end local function arm(probe) local prompt = promptOf(probe) if prompt then pcall(function() prompt.RequiresLineOfSight = false prompt.MaxActivationDistance = 100000 prompt.HoldDuration = 0 end) pcall(setproximitypromptduration, prompt, 0) end end local function fire(probe) local prompt = promptOf(probe) if prompt then pcall(fireproximityprompt, prompt) else pcall(function() VIM:SendKeyEvent(true, Enum.KeyCode.E, false, game) end) task.wait(0.1) pcall(function() VIM:SendKeyEvent(false, Enum.KeyCode.E, false, game) end) end end if hum then pcall(function() hum:UnequipTools() end) end -- stand at the cluster once. every probe sits within a few studs of the -- park point, so one position satisfies the server's distance check for -- all of them - walking to each one was the slow part. local first = probeAnchor(deployedProbes()[1]) if first then hrp.CFrame = CFrame.new(first.Position + Vector3.new(0, 3, 0)) task.wait(0.15) end -- burst pickup: arm and fire every prompt in the same frame, then only -- re-fire models that are still standing for _ = 1, 5 do if ENV.dead then break end local list = deployedProbes() if #list == 0 then break end for _, probe in ipairs(list) do arm(probe) end for _, probe in ipairs(list) do if probe.Parent then fire(probe) end end task.wait(0.3) if #deployedProbes() == 0 then break end end -- anything left after the burst gets the slow walk-up treatment for _ = 1, 3 do local left = deployedProbes() if #left == 0 then break end for _, probe in ipairs(left) do local part = probeAnchor(probe) if part and not ENV.dead then hrp.CFrame = CFrame.new(part.Position + Vector3.new(0, 3, 0)) task.wait(0.25) arm(probe) fire(probe) task.wait(0.25) end end task.wait(0.3) end local remaining = #deployedProbes() ENV.lastCollectLeft = remaining ENV.lastCollectTime = os.clock() - t0 if remaining == 0 then ENV.probeTag = nil end -- rack empty, next run re-tags local got = math.max(before - remaining, 0) print(string.format("[PICKUP] %d back in %.1fs (left %d, held %d)", got, ENV.lastCollectTime, remaining, probeTools())) return got end ------------------------------------------------------------------------ -- one cycle ------------------------------------------------------------------------ local function cycle() local serial = ENV.deathSerial if not aliveSince(serial) then ENV.state = "not alive - waiting for respawn" return end if os.clock() < (ENV.cooldownUntil or 0) then ENV.state = string.format("cooldown %.1fs after death", ENV.cooldownUntil - os.clock()) return end -- car first: it is what the probe rack hangs off, so it goes down before -- any intercept work ENV.state = "checking the Scout" if scoutSpawned() then if not ENV.vehLogged then ENV.vehLogged = true print("[VEHICLE] existing usable vehicle found; skipping spawn") end end if not scoutSpawned() and (ENV.scoutFails or 0) < 6 then ENV.state = "spawning the Scout" if not spawnScout() then ENV.scoutFails = (ENV.scoutFails or 0) + 1 ENV.state = "scout spawn failed - respawning elsewhere" print("[VEHICLE] Spawn failed; respawning to a valid spot and retrying") -- the car can only spawn from certain spots; a death relocates us local hum = humanoid() if hum then pcall(function() hum.Health = 0 end) end return end ENV.scoutFails = 0 end -- the Scout exists but its rack is empty: respawn it once to refresh the -- four tower probes instead of idling on "no probes" if scoutSpawned() and probeTools() == 0 and #deployedProbes() == 0 then ENV.state = "Scout empty - refreshing its rack" local events = ReplicatedStorage:FindFirstChild("events") local ev = events and events:FindFirstChild("spawn_vehicle") if ev then pcall(function() ev:FireServer("91TERRITORY-SCOUT") end) for _ = 1, 8 do task.wait(0.5) if probeTools() > 0 then break end end end end -- Ervoila always picks up before the next intercept. doing the same here -- keeps the world count and the bag count from stacking across runs. local downNow = #deployedProbes() if downNow > 0 then ENV.load = downNow ENV.state = string.format("picking up %d probes", downNow) local got = collectProbes(serial) ENV.runs = ENV.runs + 1 print(string.format("[PROBES] picked up %d/%d probes (held %d)", got, downNow, probeTools())) end ENV.state = "scanning for a storm" local storm = pickStorm() ENV.stormLock = storm if not storm then ENV.state = "waiting for a storm" return end local winds = stormWinds(storm) ENV.winds = winds -- stock first, so the lead knows how many probes actually go down local guard = 0 while probeTools() < WANT and guard < 6 do guard = guard + 1 if moneyNow() < CHEAPEST then break end if not restock() then break end task.wait(0.8) end -- place every held probe, capped at one rack's worth if ENV.probeTag and #deployedProbes() == 0 then ENV.probeTag = nil end local have = math.min(probeTools(), PLACE_MAX) if have == 0 then ENV.state = string.format("no probes, $%d - paused", math.floor(moneyNow())) return end ENV.load = have ENV.state = "tracking the core" local tr = trackPath(storm, 9, 0.35) if not tr then ENV.state = "lost the tornado" return end -- ---------- tornado analysis + projected path ---------- local speed = math.max(tr.speed or 0, 1) local width = tornadoWidth(storm) local killzone = tornadoKillzone(storm) or (width / 2) local threat = threatFrom(winds, width) local margin = safetyMargin(width, threat) local corridor = width / 2 + margin -- danger corridor half-width -- park just outside the effect radius: radius + the ground the core covers -- while we track, line up and place the batch, plus a fixed berth. Ervoila's -- captures sit at roughly radius+350 on slow storms, not a big multiple. local radius = math.max(killzone, width / 2, 300) -- keep the rack as close to the core as safely possible: only the time -- actually needed to line up and press the batch, not a large fixed pad local placeSecs = have * PLACE_PER_PROBE + 5 -- teleport + line-up + deploy local clearance = 120 + speed * placeSecs local leadDist = radius + clearance local bumpSec = math.min(ENV.leadBump or 0, 600) / speed local lead = math.clamp(clearance / speed + 2 + bumpSec, 10, 320) ENV.killzone = killzone local clearDist = math.clamp(350 + speed * 8 + winds * 4 + corridor, 700, 9000) ENV.lead, ENV.clear = lead, clearDist ENV.threat = threat ENV.corridor = corridor print(string.format("[SAFETY] Tornado threat: %s (winds %.0f, width %.0f)", threat, winds, width)) print(string.format("[PATH] speed %.0f studs/s, killzone %.0f, corridor %.0f, lead %.0fs (%.0f studs)", speed, killzone, corridor, lead, leadDist)) print(string.format("[INTERCEPT] killzone %.0f | dist %.0f | est wait %.0fs", radius, leadDist, lead)) local base = tr.pos local dirv = tr.dir or Vector3.new(0, 0, 1) local side = Vector3.new(-dirv.Z, 0, dirv.X) if side.Magnitude < 0.1 then side = Vector3.new(1, 0, 0) end -- cancel this storm outright if the teleport point would land outside the -- map, or if the core leaves before the pass can finish. no clamping onto -- the edge: switch to the next storm and wait for a better one. local leadEnd = base + dirv * leadDist local exitTime = math.huge do local vx, vz = dirv.X * speed, dirv.Z * speed local tx, tz = math.huge, math.huge if vx > 1e-4 then tx = (MAP.maxX - EDGE_PAD - base.X) / vx elseif vx < -1e-4 then tx = (MAP.minX + EDGE_PAD - base.X) / vx end if vz > 1e-4 then tz = (MAP.maxZ - EDGE_PAD - base.Z) / vz elseif vz < -1e-4 then tz = (MAP.minZ + EDGE_PAD - base.Z) / vz end exitTime = math.min(tx, tz) end local passTime = math.clamp((corridor * 2) / speed + 4, 10, 45) if not inBounds(leadEnd.X, leadEnd.Z, EDGE_PAD) or exitTime < lead + passTime then ENV.stormSkip[storm] = os.clock() + 60 if ENV.stormLock == storm then ENV.stormLock = nil end ENV.state = "storm too close to boundary - cancelled" print(string.format("[STORM] cancel %s: exit %.0fs, lead %.0fs, teleport %.0f,%.0f", tostring(storm.Name), exitTime, lead, leadEnd.X, leadEnd.Z)) return end -- deployment point: on the projected path, far enough ahead in TIME that -- the core cannot arrive before the probes are down. prefer farther, but -- only if the spot is still in bounds and on dry ground. local deployPoint = nil local deployLat = 0 local tryMult = { 1.0, 1.08, 0.94, 1.15, 0.88, 1.25, 1.4 } -- stay on the core's centerline: try tiny lateral nudges first so the -- rack lands on the path instead of stepping far off to find dry ground local tryLat = { 0, 0.08, -0.08, 0.16, -0.16, 0.28, -0.28, 0.45, -0.45 } for _, mult in ipairs(tryMult) do local dd = leadDist * mult for _, lat in ipairs(tryLat) do local cx = base.X + dirv.X * dd + side.X * lat * corridor local cz = base.Z + dirv.Z * dd + side.Z * lat * corridor if inBounds(cx, cz, EDGE_PAD) then local gx, gz, gy = drySpot(cx, cz) if gx and inBounds(gx, gz, EDGE_PAD) then deployPoint = Vector3.new(gx, gy + 4, gz) deployLat = lat break end end end if deployPoint then print(string.format("[PATH] deploy point chosen at %.0f studs, lateral %+d%% of corridor", dd, math.floor(deployLat * 100))) break end print(string.format("[PATH] candidate rejected: no dry ground at %.0f studs", dd)) end if not deployPoint then ENV.state = "[SAFETY] no valid deployment position - skipping" print("[SAFETY] No valid deployment position; searching for fallback") return end -- go stand at the deploy point if not placeAt(deployPoint.X, deployPoint.Z) then ENV.state = "[SAFETY] cannot reach deployment point - skipping" return end task.wait(1.0) if not aliveSince(serial) then ENV.state = "died at the deploy point - aborting run" return end ENV.state = "lining up on the path" lineUp(storm, 2) if not aliveSince(serial) then ENV.state = "died while lining up - aborting run" return end -- revalidate before committing any probe local tpNow = tornadoPart(storm) if not tpNow then ENV.state = "[SAFETY] tornado vanished before deploy" return end -- if the wind reaches the rack before the batch can go down, do not burn -- the probes on a refused placement; let this storm pass local hrpGate = root() local nowDist = hrpGate and (tpNow.Position - hrpGate.Position).Magnitude or 0 local edgeEta = speed > 0 and math.max(nowDist - radius, 0) / speed or 0 local needSecs = have * PLACE_PER_PROBE + 3 if edgeEta < needSecs then ENV.stormSkip[storm] = os.clock() + 45 if ENV.stormLock == storm then ENV.stormLock = nil end ENV.state = string.format("too late (%.0fs to wind, need %.0fs) - next storm", edgeEta, needSecs) print(string.format("[PLACEMENT] too late: %.0fs to killzone, need %.0fs; skipping storm", edgeEta, needSecs)) return end local preDeploy = root() and root().Position ENV.state = string.format("deploying %d probe%s", have, have == 1 and "" or "s") local placed = deployProbes(have, serial) ENV.placed = ENV.placed + placed if not aliveSince(serial) then ENV.state = "died during deploy - probes left for recovery" return end -- lock onto the probe name we just put down (nearest to our feet), so a -- second Scout nearby cannot hijack the filter later in the pass if placed > 0 then resolveProbeTag() end if placed == 0 then ENV.leadBump = math.min((ENV.leadBump or 0) + 200, 600) -- the wind is already on the rack: retrying this storm just wastes the -- pass, so let it go and take the next one with a wider lead ENV.stormSkip[storm] = os.clock() + 45 if ENV.stormLock == storm then ENV.stormLock = nil end ENV.state = "placement refused - next storm, lead +200" print("[PLACEMENT] placement refused by wind; skipping this storm, lead +200.") return end -- being flung during the equip is what puts a probe off the park point; -- abort to the safe spot and re-approach on the next cycle local hrpAfter = root() if preDeploy and hrpAfter and (hrpAfter.Position - preDeploy).Magnitude > 150 then ENV.state = "flung by wind during equip - aborting" print("[WIND] flung by wind during equip! aborting to retry cleanly.") releaseHold() goSafeZone() ENV.stormSkip[storm] = os.clock() + 20 return end -- stay on the path, anchored, while the core passes over the rack local probePoint = (ENV.parkPos and ENV.parkPos.Position) or root().Position local dir = tr.dir or Vector3.new(1, 0, 0) holdAt() local tpStart = tornadoPart(storm) local startDist = tpStart and (tpStart.Position - probePoint).Magnitude or 0 local etaAtDeploy = speed > 0 and math.max(startDist - radius, 0) / speed or 0 ENV.eta = etaAtDeploy -- edge arrival + the full pass through the killzone + grace: a wide core -- must not time out before it actually reaches the rack local passSecs = speed > 0 and (radius * 2) / speed or 0 local maxWait = math.clamp(etaAtDeploy + passSecs + 90, 45, 400) print(string.format("[WAIT] chilling for %.1fs (Dynamic ETA, %.0f studs to killzone)", etaAtDeploy, math.max(startDist - radius, 0))) local closest = math.huge local started = os.clock() local lastMoney, moneyStill = -1, 0 local lastWinds, windsStill = -1, 0 local exposed = false -- the core actually reached the rack local doneAt = nil -- first confirmed-completion timestamp local moneyAtStart = moneyNow() local lastTpPos, lastTpAt = tpStart and tpStart.Position, os.clock() local missTicks = 0 while ENV.alive and os.clock() - started < maxWait do task.wait(0.4) if not aliveSince(serial) then ENV.state = "died during the pass" ENV.holdStill = false return end local hrp = root() if not hrp then ENV.state = "died during the pass" ENV.holdStill = false return end local tp = tornadoPart(storm) if not tp or not storm.Parent then -- core gone: nothing left to measure, so go straight to pickup ENV.state = "tornado cleared early - moving to pickup" print("[STORM] tornado cleared early! moving to pickup.") break end -- live speed: track how far the core actually moved between ticks, so the -- ETA follows the storm even when it accelerates or stalls local now = os.clock() if lastTpPos then local dt = now - lastTpAt if dt > 0.15 then local v = (tp.Position - lastTpPos).Magnitude / dt if v > 0.5 and v < 500 then speed = speed * 0.7 + v * 0.3 end end end lastTpPos, lastTpAt = tp.Position, now ENV.speed = speed local d = (tp.Position - probePoint).Magnitude local eta = speed > 0 and math.max(d - radius, 0) / speed or 0 ENV.dist, ENV.eta = d, eta if d < closest then closest = d end ENV.closest = closest -- the core has been over the rack at least once if closest < radius + 100 then exposed = true end local away = (probePoint - tp.Position):Dot(dir) < -40 -- predicted path was off: the core is already past us and never got -- near the rack. stop burning time on a miss and go cash out. if away and not exposed and d > radius + 400 then missTicks = missTicks + 1 else missTicks = 0 end if missTicks >= 6 then ENV.state = "storm missed the rack - moving to pickup" print("[STORM] storm missed the rack; moving to pickup.") break end -- live readings straight off the probes local live = deployedProbes() local made, windSum, hpSum = 0, 0, 0 for _, prb in ipairs(live) do made = made + (tonumber(prb:GetAttribute("money")) or 0) windSum = windSum + (tonumber(prb:GetAttribute("winds")) or 0) hpSum = hpSum + (tonumber(prb:GetAttribute("health")) or 0) end ENV.hp = hpSum local runSecs = os.clock() - started ENV.hourly = runSecs > 5 and (moneyNow() - moneyAtStart) / runSecs * 3600 or 0 if made == lastMoney then moneyStill = moneyStill + 1 else moneyStill = 0 end if windSum == lastWinds then windsStill = windsStill + 1 else windsStill = 0 end lastMoney, lastWinds = made, windSum local readingsFlat = moneyStill >= FLAT_SAMPLES and windsStill >= FLAT_SAMPLES local farPast = away and d > clearDist if not exposed then ENV.state = string.format("chilling %.0fs - %s (ETA %.0fs)", os.clock() - started, d > radius and string.format("%.0f studs to killzone", d - radius) or "winds on the rack", eta) elseif not (away and (readingsFlat or farPast)) then ENV.state = "tornado still affecting probe - continuing measurements" else -- measurements stopped and the core is receding / clear doneAt = doneAt or os.clock() local elapsed = os.clock() - doneAt if elapsed < (ENV.grace or GRACE_SECONDS) then ENV.state = string.format("grace period active %.1fs", elapsed) else ENV.state = "probe ready for collection" break end end -- probes all destroyed = nothing left to earn if exposed and away and hpSum <= 0 and #live > 0 then ENV.state = "probes destroyed - collecting" break end -- every probe already cleared off the rack = pass finished, cash out now if exposed and #live == 0 then ENV.state = "all probes cleared - collecting" break end ENV.collectTime = have * 1.6 end releaseHold() if closest < math.huge then print(string.format("[PASS] closest approach %.0f studs (killzone %.0f, %s)", closest, radius, closest <= radius and "core crossed the rack" or string.format("%.0f studs outside", closest - radius))) end ENV.state = "collecting" task.wait(0.4) if not aliveSince(serial) then ENV.state = "died before collection - recovery next cycle" return end local got = collectProbes(serial) ENV.runs = ENV.runs + 1 -- a clean pickup pays down the death/refusal padding, so the lead creeps -- back toward the tight value instead of staying permanently wide if (ENV.leadBump or 0) > 0 then ENV.leadBump = math.max(0, ENV.leadBump - 100) end ENV.state = string.format("collection complete - next cycle | run %d, %d back", ENV.runs, got) if probeTools() < WANT and moneyNow() > 2500 then restock() task.wait(0.8) end end task.spawn(function() while ENV.alive do task.wait(0.5) if ENV.justDied then ENV.justDied = false end if ENV.dead then ENV.state = "died - respawning" task.wait(0.25) elseif not ENV.running then ENV.state = "paused" if ENV.holdStill then releaseHold() end task.wait(0.25) elseif not ENV.busy then ENV.busy = true local ok, err = pcall(cycle) if not ok then local msg = tostring(err) ENV.state = "error: " .. msg:sub(1, 40) print("[ERROR] " .. msg) end ENV.busy = false task.wait(ENV.justDied and 0.2 or 1.2) end end end) ------------------------------------------------------------------------ -- death + respawn ------------------------------------------------------------------------ local function respawnNow() local events = ReplicatedStorage:FindFirstChild("events") local ev = events and events:FindFirstChild("plr_respawn") if ev then pcall(function() ev:FireServer() end) end task.wait(0.5) local pg = LP:FindFirstChildOfClass("PlayerGui") local rg = pg and pg:FindFirstChild("RespawnGUI") if rg then for _, d in ipairs(rg:GetDescendants()) do if d:IsA("TextButton") then for _, c in ipairs(getconnections(d.MouseButton1Click)) do pcall(function() c.Function() end) end end end end end local function watchCharacter(ch) local hum = ch and ch:FindFirstChildOfClass("Humanoid") if not hum then return end hum.Died:Connect(function() -- do NOT clear busy here: the cycle that is mid-pass must unwind on its -- own, otherwise two cycles end up running at once ENV.deathSerial = ENV.deathSerial + 1 ENV.deathAt = os.clock() ENV.cooldownUntil = os.clock() + 10.5 ENV.leadBump = math.min((ENV.leadBump or 0) + 500, 2500) ENV.dead = true ENV.holdStill = false ENV.parkPos = nil ENV.lastClear = 0 ENV.state = "died - respawning" ENV.justDied = true print("[DEATH] character died! intercept distance bumped by +500 studs") task.spawn(function() task.wait(0.35) pcall(respawnNow) for _ = 1, 25 do if LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") then break end task.wait(0.2) pcall(respawnNow) end end) end) end watchCharacter(LP.Character) LP.CharacterAdded:Connect(function(ch) task.wait(0.2) pcall(stripAC) pcall(watchCharacter, ch) ENV.dead = false ENV.holdStill = false ENV.parkPos = nil ENV.state = "back up" print("[RECOVERY] player respawned; checking existing equipment") end) -- the tornado shoves an anchored assembly too, so re-assert the park point ENV.conns[#ENV.conns + 1] = RunService.Heartbeat:Connect(function() local hrp = root() if ENV.holdStill and ENV.parkPos and hrp then hrp.CFrame = ENV.parkPos local ch = character() if ch then for _, p in ipairs(ch:GetDescendants()) do if p:IsA("BasePart") then pcall(function() p.AssemblyLinearVelocity = Vector3.zero end) pcall(function() p.AssemblyAngularVelocity = Vector3.zero end) if not p.Anchored then p.Anchored = true end end end end end end) task.spawn(function() while ENV.alive do task.wait(2) pcall(stripAC) end end) ------------------------------------------------------------------------ -- fullbright + anti-afk ------------------------------------------------------------------------ local fbSaved = nil local function applyFB() Lighting.Brightness = 3 Lighting.ClockTime = 14 Lighting.Ambient = Color3.fromRGB(172, 172, 184) Lighting.OutdoorAmbient = Color3.fromRGB(172, 172, 184) Lighting.FogEnd = 1e6 Lighting.FogStart = 0 Lighting.GlobalShadows = false for _, e in ipairs(Lighting:GetChildren()) do if e:IsA("Atmosphere") then pcall(function() e.Density = 0 end) end end end local function setFullbright(on) if on then if not fbSaved then fbSaved = { Brightness = Lighting.Brightness, ClockTime = Lighting.ClockTime, Ambient = Lighting.Ambient, OutdoorAmbient = Lighting.OutdoorAmbient, FogEnd = Lighting.FogEnd, FogStart = Lighting.FogStart, GlobalShadows = Lighting.GlobalShadows, Density = {}, } for _, e in ipairs(Lighting:GetChildren()) do if e:IsA("Atmosphere") then fbSaved.Density[e] = e.Density end end end applyFB() elseif fbSaved then Lighting.Brightness = fbSaved.Brightness Lighting.ClockTime = fbSaved.ClockTime Lighting.Ambient = fbSaved.Ambient Lighting.OutdoorAmbient = fbSaved.OutdoorAmbient Lighting.FogEnd = fbSaved.FogEnd Lighting.FogStart = fbSaved.FogStart Lighting.GlobalShadows = fbSaved.GlobalShadows for e, d in pairs(fbSaved.Density) do if e.Parent then pcall(function() e.Density = d end) end end fbSaved = nil end end local function killIdle() for _, c in ipairs(getconnections(LP.Idled)) do pcall(function() c:Disable() end) end end killIdle() task.spawn(function() while ENV.alive do task.wait(20) pcall(killIdle) end end) -- the game drives Lighting every frame, so this has to win the race RunService.RenderStepped:Connect(function() if ENV.alive and ENV.fullbright then pcall(applyFB) end end) task.spawn(function() while ENV.alive do task.wait(75) if ENV.antiafk and ENV.running and not ENV.holdStill then local hum = humanoid() if hum then pcall(function() hum.Jump = true end) end end end end) ------------------------------------------------------------------------ -- storm esp ------------------------------------------------------------------------ local stormEsp = {} local function clearStormESP() for _, bb in pairs(stormEsp) do pcall(function() bb:Destroy() end) end stormEsp = {} for _, d in ipairs(workspace:GetDescendants()) do if d.Name == "TW_STORM" and d:IsA("BillboardGui") then pcall(function() d:Destroy() end) end end end local function refreshStormESP() if not ENV.esp then return end local hrp = root() local my = hrp and hrp.Position local target = activeStorm() local sr = workspace:FindFirstChild("storm_related") local st = sr and sr:FindFirstChild("storms") local list = st and st:GetChildren() or {} for _, storm in ipairs(list) do local tp = tornadoPart(storm) -- no funnel, no tag if tp then local bb = stormEsp[storm] if not (bb and bb.Parent) then bb = new("BillboardGui", { Name = "TW_STORM", Size = UDim2.fromOffset(150, 46), StudsOffset = Vector3.new(0, 26, 0), AlwaysOnTop = true, MaxDistance = 60000, }, tp) new("TextLabel", { Name = "Top", Size = UDim2.new(1, 0, 0, 18), BackgroundTransparency = 1, Font = Enum.Font.GothamBlack, TextSize = 15, TextColor3 = Color3.new(1, 1, 1), TextStrokeTransparency = 0.2, Text = "-", }, bb) new("TextLabel", { Name = "Mid", Size = UDim2.new(1, 0, 0, 13), Position = UDim2.fromOffset(0, 18), BackgroundTransparency = 1, Font = Enum.Font.Code, TextSize = 10, TextColor3 = Color3.fromRGB(210, 214, 224), TextStrokeTransparency = 0.3, Text = "-", }, bb) new("TextLabel", { Name = "Low", Size = UDim2.new(1, 0, 0, 12), Position = UDim2.fromOffset(0, 31), BackgroundTransparency = 1, Font = Enum.Font.GothamBold, TextSize = 9, TextColor3 = C.good, TextStrokeTransparency = 0.3, Text = "", }, bb) stormEsp[storm] = bb end local winds = stormWinds(storm) local d = my and (tp.Position - my).Magnitude or -1 local hot = winds >= 140 local isTarget = (storm == target) bb.Enabled = d < 0 or d <= 25000 local top = bb:FindFirstChild("Top") local mid = bb:FindFirstChild("Mid") local low = bb:FindFirstChild("Low") if top then top.Text = string.format("%d mph", math.floor(winds)) top.TextColor3 = hot and C.bad or Color3.new(1, 1, 1) end if mid then mid.Text = d >= 0 and string.format("%d studs", d) or "-" end if low then low.Text = isTarget and "TARGET" or "" low.TextColor3 = C.good end end end for storm, bb in pairs(stormEsp) do if not storm.Parent or not tornadoPart(storm) then pcall(function() bb:Destroy() end) stormEsp[storm] = nil end end end ------------------------------------------------------------------------ -- probe esp ------------------------------------------------------------------------ local probeEsp = {} local function clearProbeESP() for _, bb in pairs(probeEsp) do pcall(function() bb:Destroy() end) end probeEsp = {} for _, d in ipairs(workspace:GetDescendants()) do if d.Name == "TW_PROBE" and d:IsA("BillboardGui") then pcall(function() d:Destroy() end) end end end local function refreshProbeESP() if not ENV.probeEsp then return end local hrp = root() local my = hrp and hrp.Position local pr = workspace:FindFirstChild("player_related") local pf = pr and pr:FindFirstChild("probes") if not pf then return end local uid = ourCarId() or tostring(LP.UserId) for _, probe in ipairs(pf:GetChildren()) do local part = probeAnchor(probe) if part and part:IsA("BasePart") then local bb = probeEsp[probe] if not (bb and bb.Parent) then bb = new("BillboardGui", { Name = "TW_PROBE", Size = UDim2.fromOffset(140, 30), StudsOffset = Vector3.new(0, 12, 0), AlwaysOnTop = true, MaxDistance = 12000, }, part) new("TextLabel", { Name = "Title", Size = UDim2.new(1, 0, 0, 14), BackgroundTransparency = 1, Font = Enum.Font.GothamBold, TextSize = 10, TextColor3 = Color3.new(1, 1, 1), TextStrokeTransparency = 0.3, Text = "PROBE", }, bb) new("TextLabel", { Name = "Sub", Size = UDim2.new(1, 0, 0, 13), Position = UDim2.fromOffset(0, 14), BackgroundTransparency = 1, Font = Enum.Font.Code, TextSize = 9, TextColor3 = Color3.fromRGB(200, 205, 215), TextStrokeTransparency = 0.3, Text = "-", }, bb) probeEsp[probe] = bb end local mine = probe.Name == uid local d = my and (part.Position - my).Magnitude or -1 bb.Enabled = d < 0 or d <= 12000 local t = bb:FindFirstChild("Title") local sub = bb:FindFirstChild("Sub") if t then t.Text = mine and "PROBE yours" or "PROBE other" t.TextColor3 = mine and C.accent2 or Color3.fromRGB(180, 186, 198) end if sub then sub.Text = d >= 0 and string.format("%d studs", d) or "?" end end end for probe, bb in pairs(probeEsp) do if not probe.Parent then pcall(function() bb:Destroy() end) probeEsp[probe] = nil end end end ------------------------------------------------------------------------ -- readout ------------------------------------------------------------------------ local gui = new("ScreenGui", { Name = "farm_readout", ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, DisplayOrder = 998, }, (pcall(gethui) and gethui()) or game:GetService("CoreGui")) ENV.gui = gui local main = new("Frame", { Name = "Main", Size = UDim2.fromOffset(380, 378), Position = UDim2.fromOffset(40, 40), BackgroundColor3 = C.bg, BorderSizePixel = 0, ClipsDescendants = true, }, gui) corner(main, 8) new("UIStroke", { Color = C.line, Thickness = 1, Transparency = 0.2 }, main) -- solid header, blocky build style local header = new("Frame", { Name = "Header", Size = UDim2.new(1, 0, 0, 44), BackgroundColor3 = C.accent, BorderSizePixel = 0, }, main) corner(header, 7) new("TextLabel", { Size = UDim2.fromOffset(230, 20), Position = UDim2.fromOffset(14, 11), BackgroundTransparency = 1, Font = Enum.Font.GothamBlack, TextSize = 15, TextColor3 = Color3.new(1, 1, 1), TextXAlignment = Enum.TextXAlignment.Left, Text = "PROBE AUTOFARM", }, header) local stop = new("TextButton", { Name = "Close", Size = UDim2.fromOffset(28, 28), Position = UDim2.new(1, -40, 0, 8), BackgroundColor3 = C.bg, BackgroundTransparency = 0.45, BorderSizePixel = 0, Font = Enum.Font.GothamBold, TextSize = 16, TextColor3 = Color3.new(1, 1, 1), Text = "×", AutoButtonColor = false, }, header) corner(stop, 4) -- status console local console = new("Frame", { Name = "Console", Size = UDim2.new(1, -24, 0, 120), Position = UDim2.fromOffset(12, 54), BackgroundColor3 = C.surface, BorderSizePixel = 0, }, main) corner(console, 4) new("UIStroke", { Color = C.line, Thickness = 1, Transparency = 0.35 }, console) new("Frame", { Size = UDim2.fromOffset(3, 13), Position = UDim2.fromOffset(10, 10), BackgroundColor3 = C.accent, BorderSizePixel = 0, }, console) new("TextLabel", { Size = UDim2.fromOffset(120, 13), Position = UDim2.fromOffset(19, 9), BackgroundTransparency = 1, Font = Enum.Font.GothamBold, TextSize = 10, TextColor3 = C.dim, TextXAlignment = Enum.TextXAlignment.Left, Text = "STATUS", }, console) local stateLbl = new("TextLabel", { Size = UDim2.new(1, -20, 0, 16), Position = UDim2.fromOffset(10, 28), BackgroundTransparency = 1, Font = Enum.Font.Code, TextSize = 13, TextColor3 = C.accent2, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd, Text = "starting", }, console) local rows = {} for _, r in ipairs({ { key = "storm", y = 52 }, { key = "probes", y = 74 }, { key = "runs", y = 96 }, }) do rows[r.key] = new("TextLabel", { Size = UDim2.new(1, -20, 0, 16), Position = UDim2.fromOffset(10, r.y), BackgroundTransparency = 1, Font = Enum.Font.Code, TextSize = 13, TextColor3 = C.text, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd, Text = r.key .. " -", }, console) end -- earnings strip local moneyPill = new("Frame", { Name = "Earnings", Size = UDim2.new(1, -24, 0, 36), Position = UDim2.fromOffset(12, 186), BackgroundColor3 = C.surface, BorderSizePixel = 0, }, main) corner(moneyPill, 4) new("UIStroke", { Color = C.line, Thickness = 1, Transparency = 0.35 }, moneyPill) local earnTitle = new("TextLabel", { Size = UDim2.fromOffset(96, 36), BackgroundTransparency = 1, Font = Enum.Font.GothamBold, TextSize = 10, TextColor3 = C.dim, TextXAlignment = Enum.TextXAlignment.Left, Text = "EARNINGS", }, moneyPill) new("UIPadding", { PaddingLeft = UDim.new(0, 12) }, earnTitle) local moneyLabel = new("TextLabel", { Size = UDim2.new(1, -108, 1, 0), Position = UDim2.fromOffset(96, 0), BackgroundTransparency = 1, Font = Enum.Font.GothamBold, TextSize = 14, TextColor3 = C.text, TextXAlignment = Enum.TextXAlignment.Right, Text = "$0/h", }, moneyPill) new("UIPadding", { PaddingRight = UDim.new(0, 12) }, moneyLabel) -- probe health strip: one row per deployed probe local healthPill = new("Frame", { Name = "ProbeHealth", Size = UDim2.new(1, -24, 0, 52), Position = UDim2.fromOffset(12, 230), BackgroundColor3 = C.surface, BorderSizePixel = 0, }, main) corner(healthPill, 4) new("UIStroke", { Color = C.line, Thickness = 1, Transparency = 0.35 }, healthPill) local healthTitle = new("TextLabel", { Size = UDim2.fromOffset(140, 12), Position = UDim2.fromOffset(12, 6), BackgroundTransparency = 1, Font = Enum.Font.GothamBold, TextSize = 10, TextColor3 = C.dim, TextXAlignment = Enum.TextXAlignment.Left, Text = "PROBE HEALTH", }, healthPill) local healthCountLbl = new("TextLabel", { Size = UDim2.fromOffset(60, 12), Position = UDim2.new(1, -72, 0, 6), BackgroundTransparency = 1, Font = Enum.Font.Code, TextSize = 10, TextColor3 = C.faint, TextXAlignment = Enum.TextXAlignment.Right, Text = "0/4", }, healthPill) local healthSlots = {} for i = 1, 4 do local x = 12 + (i - 1) * 84 local tag = new("TextLabel", { Size = UDim2.fromOffset(78, 12), Position = UDim2.fromOffset(x, 20), BackgroundTransparency = 1, Font = Enum.Font.Code, TextSize = 11, TextColor3 = C.faint, TextXAlignment = Enum.TextXAlignment.Left, Text = string.format("P%d --", i), }, healthPill) local barBg = new("Frame", { Size = UDim2.fromOffset(78, 7), Position = UDim2.fromOffset(x, 37), BackgroundColor3 = Color3.fromRGB(24, 21, 38), BorderSizePixel = 0, }, healthPill) corner(barBg, 3) local fill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = C.good, BorderSizePixel = 0, }, barBg) corner(fill, 3) healthSlots[i] = { tag = tag, fill = fill } end -- big run button local power = new("TextButton", { Name = "Power", Size = UDim2.new(1, -24, 0, 46), Position = UDim2.fromOffset(12, 294), BackgroundColor3 = C.raised, BorderSizePixel = 0, Font = Enum.Font.GothamBlack, TextSize = 14, TextColor3 = C.text, Text = "START FARM", AutoButtonColor = false, }, main) corner(power, 4) new("UIStroke", { Color = C.line, Thickness = 1, Transparency = 0.3 }, power) local powerKnob = new("Frame", { Size = UDim2.fromOffset(10, 10), Position = UDim2.fromOffset(16, 18), BackgroundColor3 = C.faint, BorderSizePixel = 0, }, power) corner(powerKnob, 5) new("TextLabel", { Size = UDim2.new(1, -24, 0, 14), Position = UDim2.fromOffset(12, 348), BackgroundTransparency = 1, Font = Enum.Font.Code, TextSize = 9, TextColor3 = C.faint, Text = "RIGHT-SHIFT HIDE · X UNLOAD", }, main) do local dragging, dragStart, startPos = false, nil, nil main.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = i.Position startPos = main.Position end end) main.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) UserInputService.InputChanged:Connect(function(i) if dragging and i.UserInputType == Enum.UserInputType.MouseMovement then local d = i.Position - dragStart main.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + d.X, startPos.Y.Scale, startPos.Y.Offset + d.Y ) end end) end local function paintPower() local on = ENV.running power.Text = on and "STOP FARM" or "START FARM" power.TextColor3 = on and C.bg or C.text power.UIStroke.Color = on and C.accent2 or C.line TweenService:Create(power, TweenInfo.new(0.15, Enum.EasingStyle.Quad), { BackgroundColor3 = on and C.accent2 or C.raised, }):Play() TweenService:Create(powerKnob, TweenInfo.new(0.15, Enum.EasingStyle.Quad), { BackgroundColor3 = on and C.bg or C.faint, }):Play() end power.MouseButton1Click:Connect(function() ENV.running = not ENV.running if not ENV.running then releaseHold() ENV.state = "paused" else ENV.state = "starting" end paintPower() end) stop.MouseButton1Click:Connect(function() ENV.alive = false pcall(clearStormESP) pcall(clearProbeESP) pcall(setFullbright, false) releaseHold() for _, c in ipairs(ENV.conns) do pcall(function() c:Disconnect() end) end gui:Destroy() getgenv().TW_FARM = nil end) -- the game marks RightShift as processed, so ignore that flag here ENV.conns[#ENV.conns + 1] = UserInputService.InputBegan:Connect(function(i) if i.KeyCode == Enum.KeyCode.RightShift then gui.Enabled = not gui.Enabled end end) ENV.moneyStart = moneyNow() paintPower() if ENV.fullbright then pcall(setFullbright, true) end getgenv().TW_FARM.deployProbes = deployProbes getgenv().TW_FARM.collectProbes = collectProbes getgenv().TW_FARM.paintPower = paintPower getgenv().TW_FARM.setFullbright = setFullbright -- esp at 10 Hz, everything else at 3 Hz task.spawn(function() while ENV.alive do task.wait(0.1) if ENV.esp then pcall(refreshStormESP) end if ENV.probeEsp then pcall(refreshProbeESP) end end end) task.spawn(function() while ENV.alive do task.wait(0.35) pcall(function() local shown = ENV.running and ENV.state or "paused" stateLbl.Text = shown stateLbl.TextColor3 = ENV.running and C.accent2 or C.warn local hot = ENV.winds >= 140 local kz = ENV.killzone or 0 local etaTxt = ENV.eta > 0 and string.format("ETA %.0fs", ENV.eta) or "eta -" rows.storm.Text = string.format("storm %s %s %.0f mph kz %.0f", ENV.dist > 0 and string.format("%.0f studs", ENV.dist) or "idle", etaTxt, math.floor(ENV.winds), kz) rows.storm.TextColor3 = hot and C.bad or C.text local live = deployedProbes() table.sort(live, function(a, b) local ta = tonumber(a:GetAttribute("tick")) or 0 local tb = tonumber(b:GetAttribute("tick")) or 0 if ta == tb then return tostring(a:GetAttribute("data_name")) < tostring(b:GetAttribute("data_name")) end return ta < tb end) local down = #live local hp = ENV.hp or 0 rows.probes.Text = string.format("probes %d down %d held hp %.0f", down, probeTools(), hp) rows.probes.TextColor3 = hp > 0 and C.text or C.dim healthCountLbl.Text = string.format("%d/4", math.min(down, 4)) for i = 1, 4 do local slot = healthSlots[i] local probe = live[i] local probeHp = probe and tonumber(probe:GetAttribute("health")) if probeHp then local pct = math.clamp(probeHp / 80 * 100, 0, 100) local col = pct >= 60 and C.good or pct >= 25 and C.warn or C.bad slot.tag.Text = string.format("P%d %.0f%%", i, pct) slot.tag.TextColor3 = col slot.fill.BackgroundColor3 = col slot.fill.Size = UDim2.fromScale(pct / 100, 1) else slot.tag.Text = string.format("P%d --", i) slot.tag.TextColor3 = C.faint slot.fill.Size = UDim2.fromScale(0, 1) end end local earned = moneyNow() - ENV.moneyStart local delta = earned >= 0 and string.format("+$%d", earned) or string.format("-$%d", -earned) moneyLabel.Text = string.format("%s $%s/h", delta, ENV.hourly >= 1000 and string.format("%.1fk", ENV.hourly / 1000) or string.format("%.0f", math.max(ENV.hourly or 0, 0))) if earned > 0 then moneyLabel.TextColor3 = C.good moneyPill.BackgroundColor3 = Color3.fromRGB(12, 38, 28) moneyPill.UIStroke.Color = C.good elseif earned < 0 then moneyLabel.TextColor3 = C.bad moneyPill.BackgroundColor3 = Color3.fromRGB(42, 18, 30) moneyPill.UIStroke.Color = C.bad else moneyLabel.TextColor3 = C.text moneyPill.BackgroundColor3 = Color3.fromRGB(24, 21, 38) moneyPill.UIStroke.Color = C.line end rows.runs.Text = string.format("runs %d placed %d lead %.0fs pickup %.1fs", ENV.runs, ENV.placed, ENV.lead, ENV.lastCollectTime or 0) rows.runs.TextColor3 = C.text end) end end) print("[TWISTED] probe autofarm loaded")