-- [[ 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 ]] --[[ Made by Stizzyyy · https://rscripts.net/@Stizzyyy My scripts are ALWAYS free and keyless. If you find my features or code behind a key system, it's a stolen re-upload, not mine. ]] --[[ Huss Valley Hub · PC · works on strong and light executors RightShift = show/hide menu · F6 = pause every assist Runner: auto cross (catcher avoidance, gems, rescues), auto dash dodge, auto rescue, auto Chicken/Hero. Catcher: auto chase (intercept / nearest), auto dive tackle, auto melee, auto pick runner. Visuals: chams + name/role/distance tags, gem ESP, catcher warning, phase HUD, FOV. Extras: auto map vote, Journey claim-all, like reward, codes, anti-AFK. ]] if game.GameId ~= 10764627709 then return end -- Huss Valley only if not game:IsLoaded() then game.Loaded:Wait() end local G = getgenv() if G.HVH and G.HVH.Unload then pcall(G.HVH.Unload) end local H = {conns = {}, insts = {}, alive = true} G.HVH = H function H.Unload() H.alive = false for _, c in ipairs(H.conns) do pcall(c.Disconnect, c) end for _, i in ipairs(H.insts) do pcall(i.Destroy, i) end end -- replaced once fully loaded local Players = game:GetService("Players") local UIS = game:GetService("UserInputService") local TS = game:GetService("TweenService") local Http = game:GetService("HttpService") local RS = game:GetService("ReplicatedStorage") local RunS = game:GetService("RunService") while not Players.LocalPlayer do task.wait() end local LP = Players.LocalPlayer local HUI = (gethui and gethui()) or game:GetService("CoreGui") local function conn(sig, f) local c = sig:Connect(f) H.conns[#H.conns + 1] = c return c end local function inst(cls, p, parent) local i = Instance.new(cls) for k, v in pairs(p or {}) do i[k] = v end if parent then i.Parent = parent end return i end local S = { AutoCross = false, Route = "Safe path", Gems = true, RescueDetour = true, AutoDodge = false, DodgeDist = 14, AutoRescue = true, AbilityRunner = false, AutoChoice = false, ChoicePick = "Hero", AutoChase = false, Targeting = "Intercept", AutoTackle = false, TackleRange = 9, AutoMelee = false, MeleeRange = 5, MeleeCD = 0.6, AutoPick = false, AbilityCatcher = false, PickMode = "Random", Cash = true, OpenDuffles = true, BountyFirst = true, SDRing = true, SDFight = false, ESP = true, PathESP = true, DangerRing = true, DirLines = true, Chams = true, Tags = true, GemESP = true, Warn = true, HUD = true, FOV = 70, FOVOn = false, AutoVote = false, Fav1 = "None", Fav2 = "None", Fav3 = "None", AutoCodes = true, Journey = true, LikeReward = true, AntiAFK = true, Notify = true, } local CFG = "HussValleyHub.json" pcall(function() local t = Http:JSONDecode(readfile(CFG)) for k, v in pairs(t) do if S[k] ~= nil and type(v) == type(S[k]) then S[k] = v end end end) H.S = S local function save() pcall(function() writefile(CFG, Http:JSONEncode(S)) end) end local C = {} local PRESETS = { {name = "Claude Glass", bg = "141311", side = "1E1C1A", card = "2A2724", stroke = "4A453F", text = "F2EEE6", muted = "9A948A", primary = "D97757", secondary = "F2B880"}, {name = "ChatGPT / Codex", bg = "0D0D0D", side = "171717", card = "212121", stroke = "3A3A3A", text = "ECECEC", muted = "8E8EA0", primary = "10A37F", secondary = "74AA9C"}, {name = "Solara", bg = "0E0B16", side = "161224", card = "201A33", stroke = "3B3157", text = "F1EEFA", muted = "A39BBF", primary = "9D5CFF", secondary = "5B8CFF"}, {name = "Discord", bg = "1E1F22", side = "2B2D31", card = "313338", stroke = "45474E", text = "F2F3F5", muted = "B5BAC1", primary = "5865F2", secondary = "EB459E"}, {name = "Netflix", bg = "0B0B0B", side = "141414", card = "1F1F1F", stroke = "363636", text = "FFFFFF", muted = "B3B3B3", primary = "E50914", secondary = "B81D24"}, {name = "Grok", bg = "000000", side = "0A0A0A", card = "151515", stroke = "2F2F2F", text = "FFFFFF", muted = "8B8B8B", primary = "E7E9EA", secondary = "6E6E6E"}, } local THEME_FILE = "StizzyyyUI.json" local TH = {preset = "Claude Glass", glass = 20} pcall(function() local t = Http:JSONDecode(readfile(THEME_FILE)) for k, v in pairs(t) do TH[k] = v end end) TH.glass = math.clamp(tonumber(TH.glass) or 20, 20, 45) -- below 20% the glass loses its depth local function presetOf(n) for _, p in ipairs(PRESETS) do if p.name == n then return p end end return PRESETS[1] end local function hex(h) local ok, c = pcall(Color3.fromHex, tostring(h or "")) return ok and c or nil end local function loadTheme() local p = presetOf(TH.preset) for _, k in ipairs({"bg", "side", "card", "stroke", "text", "muted"}) do C[k] = hex(p[k]) end C.clay = hex(TH.primary) or hex(p.primary) C.accent2 = hex(TH.secondary) or hex(p.secondary) C.primary, C.secondary = C.clay, C.accent2 end loadTheme() local WHITE = Color3.new(1, 1, 1) local function face(w) return Font.new("rbxasset://fonts/families/Montserrat.json", w or Enum.FontWeight.Regular) end local MED, SEMI, BOLD = Enum.FontWeight.Medium, Enum.FontWeight.SemiBold, Enum.FontWeight.Bold local themed, painters = {}, {} local function th(i, prop, role) themed[#themed + 1] = {i, prop, role} i[prop] = C[role] return i end local function painter(f) painters[#painters + 1] = f f() return f end local grads = {} local function accentGrad(parent, rot) local g = inst("UIGradient", {Rotation = rot or 0, Color = ColorSequence.new(C.clay, C.accent2)}, parent) grads[#grads + 1] = g return g end local glassParts = {} -- {instance, extra transparency} local function glassy(i, extra) glassParts[#glassParts + 1] = {i, extra or 0} i.BackgroundTransparency = math.clamp(TH.glass / 100 + (extra or 0), 0, 0.95) return i end local Gui = inst("ScreenGui", {Name = "HVH" .. math.random(1e5, 1e6), ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, DisplayOrder = 50}, HUI) H.insts[#H.insts + 1] = Gui local function corner(p, r) inst("UICorner", {CornerRadius = r == "pill" and UDim.new(1, 0) or UDim.new(0, r or 8)}, p) end local function stroke(p, c) local s = inst("UIStroke", {Color = c or C.stroke, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Transparency = 0.25}, p) if not c then themed[#themed + 1] = {s, "Color", "stroke"} end return s end local function rim(p, t) return inst("UIStroke", {Color = WHITE, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Transparency = t or 0.8}, p) end local function liquid(p, strong) p.BackgroundColor3 = WHITE glassy(p, strong and 0.74 or 0.82) local s = inst("UIStroke", {Color = WHITE, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Transparency = 0}, p) inst("UIGradient", {Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.3), NumberSequenceKeypoint.new(0.2, 0.72), NumberSequenceKeypoint.new(0.5, 0.86), NumberSequenceKeypoint.new(0.8, 0.72), NumberSequenceKeypoint.new(1, 0.3)})}, s) local sheen = inst("UIGradient", {Rotation = 90, Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 0.45)})}, p) local shine = inst("Frame", {BackgroundColor3 = WHITE, BorderSizePixel = 0, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 1), Size = UDim2.new(1, -18, 0, 1), BackgroundTransparency = 0.45, ZIndex = p.ZIndex}, p) inst("UIGradient", {Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.3, 0.3), NumberSequenceKeypoint.new(0.7, 0.3), NumberSequenceKeypoint.new(1, 1)})}, shine) return s, shine, sheen end local function tween(i, t, props, style, dir) local tw = TS:Create(i, TweenInfo.new(t, style or Enum.EasingStyle.Quint, dir or Enum.EasingDirection.Out), props) tw:Play() return tw end local function pressable(b) local sc = inst("UIScale", {}, b) b.MouseButton1Down:Connect(function() tween(sc, 0.08, {Scale = 0.96}) end) b.MouseButton1Up:Connect(function() tween(sc, 0.25, {Scale = 1}, Enum.EasingStyle.Back) end) b.MouseLeave:Connect(function() tween(sc, 0.2, {Scale = 1}) end) end local function divider(parent, pos, size, vertical) local d = inst("Frame", {BackgroundColor3 = WHITE, BorderSizePixel = 0, Position = pos, Size = size, BackgroundTransparency = 0.55}, parent) inst("UIGradient", {Rotation = vertical and 90 or 0, Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0.35), NumberSequenceKeypoint.new(1, 1)})}, d) return d end local function dragify(handle, frame) local drag, start, pos handle.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drag, start, pos = true, i.Position, frame.Position end end) conn(UIS.InputChanged, function(i) if drag and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then local d = i.Position - start frame.Position = UDim2.new(pos.X.Scale, pos.X.Offset + d.X, pos.Y.Scale, pos.Y.Offset + d.Y) end end) conn(UIS.InputEnded, function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drag = false end end) end local Win = inst("Frame", {Size = UDim2.fromOffset(620, 430), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0.5, 0.5), BorderSizePixel = 0, Active = true, BackgroundColor3 = WHITE}, Gui) glassy(Win) corner(Win, 12) rim(Win, 0.72) local winGrad = inst("UIGradient", {Rotation = 90}, Win) painter(function() winGrad.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, C.bg:Lerp(WHITE, 0.2)), ColorSequenceKeypoint.new(0.45, C.bg:Lerp(WHITE, 0.07)), ColorSequenceKeypoint.new(1, C.bg)}) end) local Shadow = inst("ImageLabel", {Image = "rbxassetid://6015897843", ImageColor3 = Color3.new(0, 0, 0), ImageTransparency = 0.78, BackgroundTransparency = 1, ScaleType = Enum.ScaleType.Slice, SliceCenter = Rect.new(49, 49, 450, 450), ZIndex = 0}, Gui) do local function syncShadow() Shadow.Visible = Win.Visible Shadow.Position = UDim2.fromOffset(Win.AbsolutePosition.X - 22, Win.AbsolutePosition.Y - 14) Shadow.Size = UDim2.fromOffset(Win.AbsoluteSize.X + 44, Win.AbsoluteSize.Y + 44) end for _, p in ipairs({"AbsolutePosition", "AbsoluteSize", "Visible"}) do conn(Win:GetPropertyChangedSignal(p), syncShadow) end task.defer(syncShadow) end local Top = inst("Frame", {Size = UDim2.new(1, 0, 0, 70), BackgroundTransparency = 1}, Win) th(inst("TextLabel", {Text = "Huss Valley Hub", FontFace = face(BOLD), TextSize = 19, BackgroundTransparency = 1, Position = UDim2.fromOffset(20, 30), Size = UDim2.new(0, 360, 0, 26), TextXAlignment = Enum.TextXAlignment.Left}, Top), "TextColor3", "text") th(inst("TextLabel", {Text = UIS.KeyboardEnabled and "RightShift to hide · F6 pauses" or "", FontFace = face(MED), TextSize = 11, BackgroundTransparency = 1, AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -20, 0, 30), Size = UDim2.new(0, 240, 0, 26), TextXAlignment = Enum.TextXAlignment.Right}, Top), "TextColor3", "muted") local WS = {parts = {}, sizes = {normal = Vector2.new(620, 430), big = Vector2.new(780, 540)}, mode = "normal", min = false, fit = 1, anim = false} WS.parts[1] = divider(Win, UDim2.fromOffset(20, 66), UDim2.new(1, -40, 0, 1)) local fit = inst("UIScale", {}, Win) local function refit() local v = workspace.CurrentCamera.ViewportSize local sz = WS.sizes[WS.mode] WS.fit = math.clamp(math.min((v.Y - 80) / sz.Y, (v.X - 20) / sz.X), 0.45, 1) if not WS.anim then fit.Scale = WS.fit end end refit() conn(workspace.CurrentCamera:GetPropertyChangedSignal("ViewportSize"), refit) dragify(Top, Win) do th(inst("TextLabel", {RichText = true, FontFace = face(MED), TextSize = 11, BackgroundTransparency = 1, AnchorPoint = Vector2.new(1, 0), Text = '● hide ● fold ● bigger', Position = UDim2.new(1, -20, 0, 8), Size = UDim2.new(0, 240, 0, 22), TextXAlignment = Enum.TextXAlignment.Right}, Top), "TextColor3", "muted") local dots, marks = {}, {} for i, col in ipairs({Color3.fromRGB(255, 95, 87), Color3.fromRGB(254, 188, 46), Color3.fromRGB(40, 200, 64)}) do local d = inst("TextButton", {Text = "", AutoButtonColor = false, BackgroundColor3 = col, BorderSizePixel = 0, Position = UDim2.fromOffset(16 + (i - 1) * 18, 14), Size = UDim2.fromOffset(12, 12)}, Top) corner(d, "pill") marks[i] = inst("TextLabel", {Text = ({"×", "–", "+"})[i], FontFace = face(BOLD), TextSize = 11, TextColor3 = Color3.new(0, 0, 0), TextTransparency = 1, BackgroundTransparency = 1, Size = UDim2.fromScale(1, 1), Position = UDim2.fromOffset(0, -1)}, d) pressable(d) dots[i] = d end local over = 0 local function showMarks(on) for _, m in ipairs(marks) do tween(m, 0.15, {TextTransparency = on and 0.45 or 1}) end end for _, d in ipairs(dots) do d.MouseEnter:Connect(function() over += 1 showMarks(true) end) d.MouseLeave:Connect(function() over = math.max(0, over - 1) task.delay(0.05, function() if over == 0 then showMarks(false) end end) end) end local function setParts(on) for _, o in ipairs(WS.parts) do o.Visible = on end end local function resizeTo(size, keepTop) local old = Win.AbsoluteSize / math.max(fit.Scale, 0.01) local shift = keepTop and (size.Y - old.Y) / 2 * fit.Scale or 0 tween(Win, 0.35, {Size = UDim2.fromOffset(size.X, size.Y), Position = Win.Position + UDim2.fromOffset(0, shift)}) end dots[1].Activated:Connect(function() Win.Visible = false end) dots[2].Activated:Connect(function() WS.min = not WS.min local full = WS.sizes[WS.mode] if WS.min then setParts(false) resizeTo(Vector2.new(full.X, 64), true) else resizeTo(full, true) task.delay(0.22, function() if not WS.min then setParts(true) end end) end end) dots[3].Activated:Connect(function() WS.mode = WS.mode == "normal" and "big" or "normal" refit() if WS.min then WS.min = false task.delay(0.22, function() if not WS.min then setParts(true) end end) end resizeTo(WS.sizes[WS.mode], false) tween(fit, 0.35, {Scale = WS.fit}) end) end do local function openAnim() local pos = Win.Position WS.anim = true fit.Scale = WS.fit * 0.92 Win.Position = pos + UDim2.fromOffset(0, 14) tween(fit, 0.32, {Scale = WS.fit}, Enum.EasingStyle.Back) tween(Win, 0.32, {Position = pos}).Completed:Connect(function() WS.anim = false end) end local ignoreVis = 0 local function setVis(v) if Win.Visible ~= v then ignoreVis += 1 Win.Visible = v end end conn(Win:GetPropertyChangedSignal("Visible"), function() if ignoreVis > 0 then ignoreVis -= 1 return end if WS.anim then return end if Win.Visible then openAnim() return end WS.anim = true setVis(true) local pos = Win.Position tween(fit, 0.16, {Scale = WS.fit * 0.92}, Enum.EasingStyle.Quad, Enum.EasingDirection.In) tween(Win, 0.16, {Position = pos + UDim2.fromOffset(0, 14)}, Enum.EasingStyle.Quad, Enum.EasingDirection.In).Completed:Connect(function() setVis(false) Win.Position, fit.Scale = pos, WS.fit WS.anim = false end) end) task.defer(openAnim)end local Tog = th(inst("TextButton", {Text = "≡", FontFace = face(SEMI), TextSize = 28, AutoButtonColor = false, Position = UDim2.new(0, 14, 0.5, -26), Size = UDim2.fromOffset(52, 52), Visible = UIS.TouchEnabled and not UIS.KeyboardEnabled}, Gui), "TextColor3", "text") corner(Tog, "pill") liquid(Tog, true) pressable(Tog) local togGlow = inst("UIStroke", {Color = C.clay, Thickness = 2, Transparency = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border}, Tog) themed[#themed + 1] = {togGlow, "Color", "clay"} conn(Win:GetPropertyChangedSignal("Visible"), function() tween(togGlow, 0.3, {Transparency = Win.Visible and 1 or 0.3}) end) dragify(Tog, Tog) local togAt Tog.InputBegan:Connect(function() togAt = Tog.AbsolutePosition end) Tog.Activated:Connect(function() if togAt and (Tog.AbsolutePosition - togAt).Magnitude > 6 then return end Win.Visible = not Win.Visible end) H.Tog = Tog local Side = inst("ScrollingFrame", {Position = UDim2.fromOffset(0, 76), Size = UDim2.new(0, 164, 1, -150), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 2, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, ScrollingDirection = Enum.ScrollingDirection.Y}, Win) th(Side, "ScrollBarImageColor3", "stroke") inst("UIListLayout", {Padding = UDim.new(0, 2), SortOrder = Enum.SortOrder.LayoutOrder}, Side) inst("UIPadding", {PaddingLeft = UDim.new(0, 16), PaddingRight = UDim.new(0, 6), PaddingBottom = UDim.new(0, 6)}, Side) th(inst("TextLabel", {Text = "MENU", FontFace = face(MED), TextSize = 11, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 26), LayoutOrder = -1, TextXAlignment = Enum.TextXAlignment.Left}, Side), "TextColor3", "muted").TextTransparency = 0.1 WS.parts[#WS.parts + 1] = Side WS.parts[#WS.parts + 1] = divider(Win, UDim2.fromOffset(170, 80), UDim2.new(0, 1, 1, -96), true) WS.parts[#WS.parts + 1] = divider(Win, UDim2.new(0, 20, 1, -70), UDim2.fromOffset(130, 1)) do local Acc = inst("Frame", {Position = UDim2.new(0, 16, 1, -62), Size = UDim2.fromOffset(150, 48), BackgroundTransparency = 1}, Win) WS.parts[#WS.parts + 1] = Acc local av = inst("ImageLabel", {BackgroundColor3 = WHITE, BackgroundTransparency = 0.92, Size = UDim2.fromOffset(38, 38), Position = UDim2.fromOffset(0, 5), Image = "rbxthumb://type=AvatarHeadShot&id=" .. tostring(game:GetService("Players").LocalPlayer.UserId) .. "&w=48&h=48"}, Acc) corner(av, "pill") rim(av, 0.35) th(inst("TextLabel", {Text = game:GetService("Players").LocalPlayer.DisplayName, FontFace = face(SEMI), TextSize = 13, BackgroundTransparency = 1, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.fromOffset(48, 7), Size = UDim2.new(1, -50, 0, 18), TextXAlignment = Enum.TextXAlignment.Left}, Acc), "TextColor3", "text") th(inst("TextLabel", {Text = "@" .. game:GetService("Players").LocalPlayer.Name, FontFace = face(), TextSize = 10, BackgroundTransparency = 1, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.fromOffset(48, 25), Size = UDim2.new(1, -50, 0, 14), TextXAlignment = Enum.TextXAlignment.Left}, Acc), "TextColor3", "muted") end local Pages = inst("Frame", {Position = UDim2.fromOffset(184, 80), Size = UDim2.new(1, -198, 1, -94), BackgroundTransparency = 1}, Win) WS.parts[#WS.parts + 1] = Pages local UI = {refresh = {}, el = {}, repaint = {}} local tabs = {} local function paintTabs() for _, o in ipairs(tabs) do local on = o.page.Visible o.btn.TextColor3 = on and C.text or C.muted o.btn.FontFace = face(on and SEMI or MED) o.bar.Visible = on o.chev.Visible = on end end function UI.tab(name, order) local btn = inst("TextButton", {Text = name, FontFace = face(MED), TextSize = 13, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 34), AutoButtonColor = false, TextXAlignment = Enum.TextXAlignment.Left, LayoutOrder = order or #tabs + 1}, Side) inst("UIPadding", {PaddingLeft = UDim.new(0, 8)}, btn) local bar = inst("Frame", {BackgroundColor3 = WHITE, BorderSizePixel = 0, AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0, -14, 0.5, 0), Size = UDim2.fromOffset(3, 22), Visible = false}, btn) accentGrad(bar, 90) local chev = th(inst("TextLabel", {Text = "›", FontFace = face(SEMI), TextSize = 18, BackgroundTransparency = 1, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, 0, 0.5, -1), Size = UDim2.fromOffset(16, 20), Visible = false}, btn), "TextColor3", "text") local page = inst("ScrollingFrame", {Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 2, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, Visible = false}, Pages) th(page, "ScrollBarImageColor3", "stroke") inst("UIListLayout", {Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder}, page) inst("UIPadding", {PaddingLeft = UDim.new(0, 2), PaddingRight = UDim.new(0, 9), PaddingBottom = UDim.new(0, 8), PaddingTop = UDim.new(0, 3)}, page) local t = setmetatable({page = page, btn = btn, bar = bar, chev = chev, n = 0}, {__index = UI.el}) local function select() if page.Visible then return end for _, o in ipairs(tabs) do o.page.Visible = false end page.Visible = true paintTabs() page.Position = UDim2.fromOffset(0, 12) tween(page, 0.35, {Position = UDim2.new()}) bar.Size = UDim2.fromOffset(3, 0) tween(bar, 0.3, {Size = UDim2.fromOffset(3, 22)}, Enum.EasingStyle.Back) chev.Position = UDim2.new(1, -8, 0.5, -1) tween(chev, 0.3, {Position = UDim2.new(1, 0, 0.5, -1)}) end btn.MouseButton1Click:Connect(select) btn.MouseEnter:Connect(function() if not page.Visible then tween(btn, 0.15, {TextColor3 = C.text}) end end) btn.MouseLeave:Connect(function() if not page.Visible then tween(btn, 0.2, {TextColor3 = C.muted}) end end) tabs[#tabs + 1] = t if #tabs == 1 then select() else paintTabs() end return t end local function card(f) f.BackgroundColor3 = WHITE glassy(f, 0.22) corner(f, 14) rim(f, 0.9) local g = inst("UIGradient", {Rotation = 0}, f) painter(function() g.Color = ColorSequence.new(C.card:Lerp(C.clay, 0.16), C.card) end) f.MouseEnter:Connect(function() tween(f, 0.18, {BackgroundTransparency = math.clamp(TH.glass / 100 + 0.14, 0, 0.95)}) end) f.MouseLeave:Connect(function() tween(f, 0.25, {BackgroundTransparency = math.clamp(TH.glass / 100 + 0.22, 0, 0.95)}) end) return f end local function row(t, h) t.n += 1 return card(inst("Frame", {Size = UDim2.new(1, 0, 0, h or 40), BorderSizePixel = 0, LayoutOrder = t.n}, t.page)) end local function lbl(parent, text) return th(inst("TextLabel", {Text = text, FontFace = face(MED), TextSize = 13, BackgroundTransparency = 1, Position = UDim2.fromOffset(16, 0), Size = UDim2.new(1, -32, 1, 0), TextXAlignment = Enum.TextXAlignment.Left}, parent), "TextColor3", "text") end function UI.el:section(text) self.n += 1 local l = th(inst("TextLabel", {Text = string.upper(text), FontFace = face(MED), TextSize = 11, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 24), TextXAlignment = Enum.TextXAlignment.Left, LayoutOrder = self.n}, self.page), "TextColor3", "muted") inst("UIPadding", {PaddingLeft = UDim.new(0, 4), PaddingTop = UDim.new(0, 8)}, l) end local function desc(f, l, text, rightPad) if not text then return end l.Position, l.Size = UDim2.fromOffset(16, 7), UDim2.new(1, -rightPad, 0, 18) th(inst("TextLabel", {Text = text, FontFace = face(), TextSize = 11, BackgroundTransparency = 1, TextWrapped = true, Position = UDim2.fromOffset(16, 26), Size = UDim2.new(1, -rightPad, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top}, f), "TextColor3", "muted") f.AutomaticSize = Enum.AutomaticSize.Y inst("UIPadding", {PaddingBottom = UDim.new(0, 10)}, f) end function UI.el:toggle(text, key, cb, d) local f = row(self, d and 58) desc(f, lbl(f, text), d, 78) local sw = inst("Frame", {AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -16, 0.5, 0), Size = UDim2.fromOffset(42, 24), BorderSizePixel = 0}, f) if d then sw.AnchorPoint, sw.Position = Vector2.new(1, 0), UDim2.new(1, -16, 0, 9) end corner(sw, "pill") local edge, shine, sheen = liquid(sw) local g = accentGrad(sw, 0) local glow = inst("UIStroke", {Color = C.clay, Thickness = 3, Transparency = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border}, sw) themed[#themed + 1] = {glow, "Color", "clay"} local knob = inst("Frame", {AnchorPoint = Vector2.new(0, 0.5), Size = UDim2.fromOffset(18, 18), Position = UDim2.new(0, 3, 0.5, 0), BackgroundColor3 = WHITE, BorderSizePixel = 0, ZIndex = 2}, sw) corner(knob, "pill") local first = true local function paint() local on = S[key] sheen.Enabled, g.Enabled, edge.Enabled, shine.Visible = not on, on, not on, not on local t = first and 0 or 0.22 tween(sw, t, {BackgroundTransparency = on and 0 or math.clamp(TH.glass / 100 + 0.82, 0, 0.95)}) tween(glow, t + 0.1, {Transparency = on and 0.6 or 1}) if not first then tween(knob, 0.1, {Size = UDim2.fromOffset(24, 18)}).Completed:Connect(function() tween(knob, 0.18, {Size = UDim2.fromOffset(18, 18)}) end) end tween(knob, t + 0.06, {Position = on and UDim2.new(0, 21, 0.5, 0) or UDim2.new(0, 3, 0.5, 0)}) first = false end inst("TextButton", {Text = "", BackgroundTransparency = 1, Size = UDim2.fromScale(1, 1)}, f).MouseButton1Click:Connect(function() S[key] = not S[key] paint() if cb then cb(S[key]) end end) paint() UI.refresh[#UI.refresh + 1] = function() paint() if cb then cb(S[key]) end end UI.repaint[#UI.repaint + 1] = paint end function UI.el:slider(text, key, min, max, step, cb, d, store) store = store or S local dy = d and 26 or 0 local f = row(self, 56 + dy) local l = lbl(f, text) l.Size = UDim2.new(1, -32, 0, 32) desc(f, l, d, 100) local val = th(inst("TextLabel", {FontFace = face(SEMI), TextSize = 13, BackgroundTransparency = 1, AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -16, 0, 0), Size = UDim2.fromOffset(80, 32), TextXAlignment = Enum.TextXAlignment.Right}, f), "TextColor3", "text") local bar = inst("Frame", {Position = UDim2.new(0, 16, 0, 38 + dy), Size = UDim2.new(1, -32, 0, 4), BackgroundColor3 = WHITE, BackgroundTransparency = 0.86, BorderSizePixel = 0}, f) corner(bar, "pill") local fill = inst("Frame", {Size = UDim2.fromScale(0, 1), BackgroundColor3 = WHITE, BorderSizePixel = 0}, bar) corner(fill, "pill") accentGrad(fill, 0) local knob = inst("Frame", {AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(1, 0.5), Size = UDim2.fromOffset(14, 14), BackgroundColor3 = WHITE, BorderSizePixel = 0}, fill) corner(knob, "pill") themed[#themed + 1] = {inst("UIStroke", {Color = C.clay, Thickness = 3, Transparency = 0.55}, knob), "Color", "clay"} local hit = inst("TextButton", {Text = "", BackgroundTransparency = 1, Position = UDim2.new(0, 8, 0, 28 + dy), Size = UDim2.new(1, -16, 0, 22)}, f) local function paint() fill.Size = UDim2.fromScale(math.clamp((store[key] - min) / (max - min), 0, 1), 1) val.Text = tostring(store[key]) end local dragging = false local function set(x) local a = math.clamp((x - bar.AbsolutePosition.X) / bar.AbsoluteSize.X, 0, 1) local v = math.floor((min + (max - min) * a) / step + 0.5) * step if step < 1 then v = tonumber(string.format("%.2f", v)) end store[key] = v paint() if cb then cb(v) end end hit.MouseButton1Down:Connect(function(x) dragging = true set(x) end) conn(UIS.InputChanged, function(i) if dragging and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then set(i.Position.X) end end) conn(UIS.InputEnded, function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragging = false end end) paint() UI.refresh[#UI.refresh + 1] = paint return paint end function UI.el:choice(text, key, opts, cb, d, store) store = store or S local f = row(self, d and 58) desc(f, lbl(f, text), d, 156) local b = th(inst("TextButton", {FontFace = face(MED), TextSize = 12, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), Size = UDim2.fromOffset(132, 26), AutoButtonColor = false}, f), "TextColor3", "text") if d then b.AnchorPoint, b.Position = Vector2.new(1, 0), UDim2.new(1, -14, 0, 8) end corner(b, "pill") liquid(b) pressable(b) local function paint() b.Text = tostring(store[key]) .. " ›" end b.MouseButton1Click:Connect(function() local i = table.find(opts, store[key]) or 0 store[key] = opts[i % #opts + 1] paint() if cb then cb(store[key]) end end) paint() UI.refresh[#UI.refresh + 1] = paint return paint end function UI.el:button(text, fn, d) self.n += 1 local b = th(inst("TextButton", {Text = d and (text .. "\n" .. d .. "") or text, RichText = true, FontFace = face(SEMI), TextSize = 13, Size = UDim2.new(1, 0, 0, d and 50 or 38), AutoButtonColor = false, LayoutOrder = self.n}, self.page), "TextColor3", "text") corner(b, "pill") liquid(b, true) pressable(b) b.MouseEnter:Connect(function() tween(b, 0.18, {BackgroundTransparency = math.clamp(TH.glass / 100 + 0.62, 0, 0.95)}) end) b.MouseLeave:Connect(function() tween(b, 0.25, {BackgroundTransparency = math.clamp(TH.glass / 100 + 0.74, 0, 0.95)}) end) b.MouseButton1Click:Connect(function() task.spawn(fn) end) return b end function UI.el:input(text, placeholder, cb) local f = row(self) lbl(f, text) local box = th(th(inst("TextBox", {PlaceholderText = placeholder, Text = "", FontFace = face(MED), TextSize = 12, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), Size = UDim2.fromOffset(170, 26), ClearTextOnFocus = false}, f), "TextColor3", "text"), "PlaceholderColor3", "muted") corner(box, "pill") liquid(box) box.FocusLost:Connect(function(enter) if cb then cb(box.Text, enter) end end) return box end function UI.el:label(text) self.n += 1 local f = card(inst("Frame", {Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BorderSizePixel = 0, LayoutOrder = self.n}, self.page)) inst("UIPadding", {PaddingTop = UDim.new(0, 11), PaddingBottom = UDim.new(0, 11), PaddingLeft = UDim.new(0, 16), PaddingRight = UDim.new(0, 16)}, f) local l = th(inst("TextLabel", {Text = text, RichText = true, FontFace = face(), TextSize = 13, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, LineHeight = 1.2}, f), "TextColor3", "text") return function(s) l.Text = s end end function UI.el:list(h) local f = row(self, h) local sc = th(inst("ScrollingFrame", {Size = UDim2.new(1, -10, 1, -10), Position = UDim2.fromOffset(5, 5), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 2, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y}, f), "ScrollBarImageColor3", "stroke") inst("UIListLayout", {Padding = UDim.new(0, 5), SortOrder = Enum.SortOrder.LayoutOrder}, sc) return sc end local function listItem(sc, text, btnText, fn, order) local f = inst("Frame", {Size = UDim2.new(1, -6, 0, 32), BorderSizePixel = 0, LayoutOrder = order or 0, BackgroundColor3 = WHITE, BackgroundTransparency = 0.94}, sc) corner(f, 12) th(inst("TextLabel", {Text = text, FontFace = face(), TextSize = 12, BackgroundTransparency = 1, Position = UDim2.fromOffset(12, 0), Size = UDim2.new(1, -100, 1, 0), TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd}, f), "TextColor3", "text") if btnText then local b = th(inst("TextButton", {Text = btnText, FontFace = face(SEMI), TextSize = 12, BackgroundColor3 = WHITE, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -5, 0.5, 0), Size = UDim2.fromOffset(80, 24), AutoButtonColor = true}, f), "TextColor3", "bg") corner(b, "pill") accentGrad(b, 0) b.MouseButton1Click:Connect(function() task.spawn(fn) end) end return f end local Toasts = inst("Frame", {AnchorPoint = Vector2.new(1, 1), Position = UDim2.new(1, -16, 1, -16), Size = UDim2.fromOffset(300, 400), BackgroundTransparency = 1}, Gui) inst("UIListLayout", {Padding = UDim.new(0, 8), VerticalAlignment = Enum.VerticalAlignment.Bottom, SortOrder = Enum.SortOrder.LayoutOrder}, Toasts) local toastN = 0 local function notify(title, text, col) if not S.Notify then return end toastN += 1 local holder = inst("Frame", {Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1, LayoutOrder = toastN}, Toasts) local f = inst("Frame", {Size = UDim2.new(1, 0, 0, 0), Position = UDim2.fromOffset(60, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundColor3 = WHITE, BackgroundTransparency = math.clamp(TH.glass / 100, 0, 0.6), BorderSizePixel = 0}, holder) corner(f, 16) rim(f, 0.82) tween(f, 0.4, {Position = UDim2.new()}, Enum.EasingStyle.Back) task.delay(4.2, function() if f.Parent then tween(f, 0.3, {Position = UDim2.fromOffset(340, 0)}, Enum.EasingStyle.Quad, Enum.EasingDirection.In) end end) inst("UIGradient", {Rotation = 90, Color = ColorSequence.new(C.bg:Lerp(WHITE, 0.14), C.bg)}, f) local dot = inst("Frame", {Size = UDim2.fromOffset(8, 8), Position = UDim2.fromOffset(14, 14), BackgroundColor3 = col or C.clay, BorderSizePixel = 0}, f) corner(dot, "pill") inst("UIStroke", {Color = col or C.clay, Thickness = 3, Transparency = 0.6}, dot) inst("UIPadding", {PaddingTop = UDim.new(0, 10), PaddingBottom = UDim.new(0, 11), PaddingLeft = UDim.new(0, 32), PaddingRight = UDim.new(0, 14)}, f) inst("TextLabel", {Text = "" .. title .. "\n" .. text, RichText = true, FontFace = face(), TextSize = 13, TextColor3 = C.text, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left}, f) task.delay(4.6, function() if holder.Parent then holder:Destroy() end end) end do local libOwn = {[Win] = true, [Shadow] = true, [Tog] = true, [Toasts] = true} local MONT = "rbxasset://fonts/families/Montserrat.json" local function glassify(o) if libOwn[o] or not o:IsA("GuiObject") or o:GetAttribute("NoGlass") or o:GetAttribute("Glassed") then return end o:SetAttribute("Glassed", true) local function refont(d) if d:IsA("TextLabel") or d:IsA("TextButton") or d:IsA("TextBox") then pcall(function() d.FontFace = Font.new(MONT, d.FontFace.Weight, d.FontFace.Style) end) end end refont(o) for _, d in ipairs(o:GetDescendants()) do refont(d) end o.DescendantAdded:Connect(function(d) task.defer(refont, d) end) if o.BackgroundTransparency >= 0.95 then return end o.BackgroundColor3 = WHITE glassy(o, 0.04) if o:IsA("Frame") then local g = inst("UIGradient", {Rotation = 90}, o) painter(function() g.Color = ColorSequence.new(C.bg:Lerp(WHITE, 0.16), C.bg) end) else painter(function() o.BackgroundColor3 = C.bg:Lerp(WHITE, 0.1) end) end local c = o:FindFirstChildOfClass("UICorner") if c then c.CornerRadius = UDim.new(0, 14) else corner(o, 14) end for _, s in ipairs(o:GetChildren()) do if s:IsA("UIStroke") then s:Destroy() end end rim(o, 0.8) end conn(Gui.ChildAdded, function(c) task.defer(glassify, c) end) task.defer(function() for _, c in ipairs(Gui:GetChildren()) do glassify(c) end end) end local function applyTheme() loadTheme() for _, t in ipairs(themed) do pcall(function() t[1][t[2]] = C[t[3]] end) end for _, g in ipairs(grads) do g.Color = ColorSequence.new(C.clay, C.accent2) end for _, gp in ipairs(glassParts) do gp[1].BackgroundTransparency = math.clamp(TH.glass / 100 + gp[2], 0, 0.95) end for _, f in ipairs(painters) do pcall(f) end paintTabs() for _, f in ipairs(UI.repaint) do pcall(f) end pcall(function() writefile(THEME_FILE, Http:JSONEncode(TH)) end) end H.applyTheme = applyTheme task.defer(function() local T = UI.tab("Theme", 999) T:section("Preset") local names = {} for _, p in ipairs(PRESETS) do names[#names + 1] = p.name end local repaintPickers = {} T:choice("Theme", "preset", names, function() TH.primary, TH.secondary = nil, nil -- a new preset brings its own accents applyTheme() for _, f in ipairs(repaintPickers) do f() end end, "Shared by all my hubs: pick it once and every hub uses it.", TH) T:slider("Glass (transparency %)", "glass", 20, 45, 1, function() applyTheme() end, nil, TH) local function picker(label, key) T:section(label) local hsv = {} local function cur() return key == "primary" and C.clay or C.accent2 end local function readHSV() local h, s, v = cur():ToHSV() hsv.h, hsv.s, hsv.v = math.floor(h * 360 + 0.5), math.floor(s * 100 + 0.5), math.floor(v * 100 + 0.5) end readHSV() local f = row(T, 40) lbl(f, "Colour") local sw = inst("Frame", {AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), Size = UDim2.fromOffset(48, 24), BorderSizePixel = 0, BackgroundColor3 = cur()}, f) corner(sw, "pill") rim(sw, 0.55) local box = th(inst("TextBox", {Text = "", FontFace = face(MED), TextSize = 12, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -70, 0.5, 0), Size = UDim2.fromOffset(88, 24), ClearTextOnFocus = false}, f), "TextColor3", "text") corner(box, "pill") liquid(box) local paints = {} local function push(c) TH[key] = c:ToHex() applyTheme() sw.BackgroundColor3 = c box.Text = "#" .. c:ToHex():upper() end local function fromHSV() push(Color3.fromHSV(hsv.h / 360, hsv.s / 100, hsv.v / 100)) end paints[#paints + 1] = T:slider("Hue", "h", 0, 360, 1, fromHSV, nil, hsv) paints[#paints + 1] = T:slider("Saturation", "s", 0, 100, 1, fromHSV, nil, hsv) paints[#paints + 1] = T:slider("Brightness", "v", 0, 100, 1, fromHSV, nil, hsv) box.FocusLost:Connect(function() local c = hex((box.Text:gsub("#", ""))) if c then push(c) readHSV() for _, p in ipairs(paints) do p() end end end) local function repaint() readHSV() for _, p in ipairs(paints) do p() end sw.BackgroundColor3 = cur() box.Text = "#" .. cur():ToHex():upper() end repaint() repaintPickers[#repaintPickers + 1] = repaint end picker("Primary colour", "primary") picker("Secondary colour", "secondary") T:button("Reset to preset colours", function() TH.primary, TH.secondary = nil, nil applyTheme() for _, f in ipairs(repaintPickers) do f() end end) paintTabs() end) local function HubBody() -- own 200-local budget, apart from the menu library local CoH = RS:WaitForChild("ChickenOrHero") local GameF = CoH:WaitForChild("Game") local Session = GameF:WaitForChild("Session") local GameAction = GameF:WaitForChild("GameAction") local MeleeEvent = GameF:WaitForChild("MeleeEvent") local RescueEvent = GameF:WaitForChild("RescueEvent") local MapVoteEvent = GameF:WaitForChild("MapVoteEvent") local MapVoteState = GameF:FindFirstChild("MapVoteState") local okB, BoostInput = pcall(require, CoH.Movement.BoostInput) local okT, Tackle = pcall(require, GameF.TacklePrediction) local okP, PD = pcall(require, CoH.Presentation.ParticipantDirectory) local RescueCfg = require(GameF.RescueConfig) local MoveCfg = require(CoH.Movement.MovementConfig) local RUN = {GroupRun = true, HeroRun = true, FinalRun = true} local KEYS = true pcall(function() if not getgc then return end for _, v in ipairs(getgc(true)) do if type(v) == "table" and rawget(v, "consume") and rawget(v, "request") and rawget(v, "available") then if v == BoostInput then KEYS = false break end end end end) local VIM = game:GetService("VirtualInputManager") local function tap(key) VIM:SendKeyEvent(true, key, false, game) task.delay(0.05, function() VIM:SendKeyEvent(false, key, false, game) end) end local function sa(k) return Session:GetAttribute(k) end local function la(k) return LP:GetAttribute(k) end local function myRoot() local c = LP.Character return c and c:FindFirstChild("HumanoidRootPart") end local function flat(v) return Vector3.new(v.X, 0, v.Z) end local function unit(v) return v.Magnitude > 1e-3 and v.Unit or Vector3.zero end local function now() return workspace:GetServerTimeNow() end local paused = false local zc local function zones() local r = myRoot() if not r then return nil end if zc and zc.a.Parent and (flat(zc.mid - r.Position)).Magnitude < 260 then return zc end local best, bd for _, d in ipairs(workspace:GetDescendants()) do if d.Name == "SafezoneASide" and d:IsA("BasePart") then local b = d.Parent:FindFirstChild("SafezoneBSide") if b then local mid = (d.Position + b.Position) / 2 local dist = flat(mid - r.Position).Magnitude if not bd or dist < bd then best, bd = {a = d, b = b, mid = mid}, dist end end end end zc = best return best end local function zoneLocal(z, pos) local p = z.CFrame:PointToObjectSpace(pos) if z.Size.X >= z.Size.Z then return p.X, p.Z, z.Size.X / 2, z.Size.Z / 2 end return p.Z, p.X, z.Size.Z / 2, z.Size.X / 2 end local function inZone(z, pos, pad) local w, l, hw, hl = zoneLocal(z, pos) return math.abs(w) <= hw + (pad or 0) and math.abs(l) <= hl + (pad or 0) end local function anyZone(pos) local z = zc return z and (inZone(z.a, pos) or inZone(z.b, pos)) end local Actors = CoH:FindFirstChild("Bots") and CoH.Bots:FindFirstChild("Actors") local botModel = {} local function participants() local list = {} local practice = la("PracticeActive") == true for _, p in ipairs(Players:GetPlayers()) do if p == LP or (not practice and p:GetAttribute("PracticeActive") ~= true) then list[#list + 1] = p end end if Actors then local cb = workspace:FindFirstChild("ClientBots") for _, a in ipairs(Actors:GetChildren()) do local owner = a:GetAttribute("PracticeOwner") if a:GetAttribute("IsBot") == true and ((practice and owner == LP.UserId) or (not practice and owner == nil)) then local m = botModel[a] if not (m and m.Parent) then m = cb and cb:FindFirstChild(a.Name, true) botModel[a] = m end if m then list[#list + 1] = {IsBot = true, Name = a.Name, UserId = a:GetAttribute("UserId"), DisplayName = a:GetAttribute("DisplayName") or a.Name, Character = m, GetAttribute = function(_, k) return a:GetAttribute(k) end} end end end end return list end H.participants = participants local track = setmetatable({}, {__mode = "k"}) local function people() local out, t = {}, os.clock() local list = participants() for _, p in ipairs(list) do if p ~= LP then local ch = p.Character local root = ch and (ch:FindFirstChild("HumanoidRootPart") or ch.PrimaryPart) if root then local pos = root.Position local tr = track[ch] if not tr then tr = {pos = pos, t = t, vel = Vector3.zero} track[ch] = tr elseif t - tr.t > 0.03 then tr.vel = tr.vel:Lerp((pos - tr.pos) / (t - tr.t), 0.5) tr.pos, tr.t = pos, t end local cl = ch:GetAttribute("Cloaked") == true or ch:GetAttribute("Ghosted") == true if cl and not tr.cloakAt then tr.cloakAt, tr.cloakPos, tr.cloakVel = t, tr.pos, flat(tr.vel) tr.guess = Vector3.new(math.random(-5, 5), 0, math.random(-5, 5)) elseif not cl then tr.cloakAt = nil end local bot = typeof(p) ~= "Instance" out[#out + 1] = { p = p, ch = ch, root = root, pos = pos, vel = flat(tr.vel), bot = bot, name = (bot and (p.DisplayName or p.Name)) or p.DisplayName, uid = p.UserId, role = p:GetAttribute("GameRole"), state = p:GetAttribute("RunState"), downed = ch:GetAttribute("Ragdolled") == true, rescuable = ch:GetAttribute("RescueAvailable") == true, helper = ch:GetAttribute("RescueHelperId"), tackling = ch:GetAttribute("TackleActive") == true or ch:GetAttribute("ReachPhase") ~= nil, cloaked = ch:GetAttribute("Cloaked") == true or ch:GetAttribute("Ghosted") == true, mem = tr, } end end end return out end local function isCatcher(e) return e.role == "Catcher" and e.state ~= "Caught" end local function isRunner(e) return e.role == "Runner" and e.state == "Active" and not e.downed end local HeatEvent = GameF:FindFirstChild("HeatEvent") local HeatTrackEvent = GameF:FindFirstChild("HeatTrackEvent") local function ha(k) return HeatEvent and HeatEvent:GetAttribute(k) end local function cashValue(g) local tag = g.Name for _, d in ipairs(g:GetDescendants()) do tag = tag .. d.Name end if tag:find("Gold") then return 500 end local size = g:IsA("BasePart") and g.Size or (g:IsA("Model") and g:GetExtentsSize()) or Vector3.zero return size.Magnitude > 3.2 and 150 or 50 end local bounties = {} local function readBounties() table.clear(bounties) local ok, list = pcall(Http.JSONDecode, Http, ha("Bounties") or "[]") if ok and type(list) == "table" then for _, b in ipairs(list) do if b.u then bounties[b.u] = tonumber(b.c) or 0 end end end end if HeatEvent then conn(HeatEvent:GetAttributeChangedSignal("Bounties"), readBounties) readBounties() end local function showdown() if ha("ShowdownPhase") ~= "Fight" or la("InMatch") ~= true or la("Spectating") == true then return false end local role = la("GameRole") if role == nil or role == "Lobby" or la("RunState") == "Caught" then return false end local c, rad, r = ha("ShowdownCentre"), ha("RingFrom") or ha("ShowdownRadius"), myRoot() if typeof(c) == "Vector3" and rad and r and flat(r.Position - c).Magnitude > rad + 60 then return false end return true end local function ring() local c, rad = ha("ShowdownCentre"), ha("RingFrom") or ha("ShowdownRadius") if typeof(c) ~= "Vector3" or not rad then return nil end local s, e, to = ha("RingStart"), ha("RingEnd"), ha("RingTo") if s and e and to and s < now() then rad += (to - rad) * math.clamp((now() - s) / (e - s), 0, 1) end return c, rad end local function fighter(e) return e.role ~= nil and e.role ~= "Lobby" and e.state ~= "Caught" and not e.downed end local drive, dodgeDir, dodgeUntil = nil, nil, 0 local MOVEKEYS = {Enum.KeyCode.W, Enum.KeyCode.A, Enum.KeyCode.S, Enum.KeyCode.D, Enum.KeyCode.Up, Enum.KeyCode.Down, Enum.KeyCode.Left, Enum.KeyCode.Right} local function manual() if UIS:GetFocusedTextBox() then return false end for _, k in ipairs(MOVEKEYS) do if UIS:IsKeyDown(k) then return true end end return false end local smooth RunS:BindToRenderStep("HVH_Move", Enum.RenderPriority.Input.Value, function(dt) if not H.alive or paused then smooth = nil return end local hum = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if not hum then return end if dodgeDir and os.clock() < dodgeUntil then smooth = dodgeDir hum:Move(dodgeDir, false) return end -- dodges stay instant if not drive or manual() then smooth = nil return end if drive.Magnitude < 0.01 then smooth = nil hum:Move(Vector3.zero, false) return end if not smooth then smooth = drive else local s2 = smooth:Lerp(drive, 1 - math.exp(-dt * 7)) smooth = s2.Magnitude > 0.05 and s2.Unit or drive end hum:Move(smooth, false) end) local R_SAFE = 22 -- how wide a berth the route gives catchers (studs) local run = {} H.why = "idle" H.path = nil local GRID = 4 local RUNSPD = MoveCfg.MaxSpeed * MoveCfg.RunnerSpeedMultiplier local CATSPD = MoveCfg.MaxSpeed * MoveCfg.CatcherSpeedMultiplier local rayP = RaycastParams.new() rayP.FilterType = Enum.RaycastFilterType.Exclude rayP.RespectCanCollide = true pcall(function() rayP.CollisionGroup = "CoHRunner" end) local grid local function ignoreList(z) local ignore = {workspace.CurrentCamera, z.a, z.b} for _, n in ipairs({"ClientBots", "LocalRunnerGems", "LocalRunnerHeatCash", "PublicBots"}) do ignore[#ignore + 1] = workspace:FindFirstChild(n) end for _, pl in ipairs(Players:GetPlayers()) do ignore[#ignore + 1] = pl.Character end return ignore end local function gridFor(z) if grid and grid.key == z.a and grid.a == z.a.Position then if os.clock() - grid.at > 10 then grid.ignore, grid.at = ignoreList(z), os.clock() end -- new characters / bots return grid end local minX, maxX, minZ, maxZ = math.huge, -math.huge, math.huge, -math.huge for _, p in ipairs({z.a, z.b}) do for _, sx in ipairs({-1, 1}) do for _, sz in ipairs({-1, 1}) do local c = p.CFrame:PointToWorldSpace(Vector3.new(sx * p.Size.X / 2, 0, sz * p.Size.Z / 2)) minX, maxX, minZ, maxZ = math.min(minX, c.X), math.max(maxX, c.X), math.min(minZ, c.Z), math.max(maxZ, c.Z) end end end minX, minZ, maxX, maxZ = minX - 32, minZ - 32, maxX + 32, maxZ + 32 grid = {key = z.a, a = z.a.Position, ox = minX, oz = minZ, nx = math.ceil((maxX - minX) / GRID), nz = math.ceil((maxZ - minZ) / GRID), floorY = math.min(z.a.Position.Y - z.a.Size.Y / 2, z.b.Position.Y - z.b.Size.Y / 2), walk = {}, edge = {}, ignore = ignoreList(z), at = os.clock()} return grid end local function cellPos(g, i, j) return Vector3.new(g.ox + (i - 0.5) * GRID, g.floorY, g.oz + (j - 0.5) * GRID) end local function cellWalk(g, i, j) local k = i * 4096 + j local v = g.walk[k] if v ~= nil then return v end local p = cellPos(g, i, j) local ignore = table.clone(g.ignore) local origin = Vector3.new(p.X, g.floorY + 45, p.Z) v = false for _ = 1, 4 do rayP.FilterDescendantsInstances = ignore local hit = workspace:Raycast(origin, Vector3.new(0, -70, 0), rayP) if not hit then break end local part = hit.Instance if hit.Position.Y > g.floorY + 4 and part.Position.Y - part.Size.Y / 2 > g.floorY + 8 then ignore[#ignore + 1] = part -- something overhead (roof, ceiling, canopy): look under it else v = hit.Position.Y < g.floorY + 4 and hit.Position.Y > g.floorY - 5 and hit.Material ~= Enum.Material.Water and not part.Name:lower():find("water") break end end g.walk[k] = v return v end local function edgeOK(g, i1, j1, i2, j2) local k1, k2 = i1 * 4096 + j1, i2 * 4096 + j2 local k = k1 < k2 and (k1 * 16777216 + k2) or (k2 * 16777216 + k1) local v = g.edge[k] if v ~= nil then return v end local a, b = cellPos(g, i1, j1) + Vector3.new(0, 2.5, 0), cellPos(g, i2, j2) + Vector3.new(0, 2.5, 0) rayP.FilterDescendantsInstances = g.ignore v = workspace:Raycast(a, b - a, rayP) == nil g.edge[k] = v return v end local function toCell(g, p) return math.clamp(math.floor((p.X - g.ox) / GRID) + 1, 1, g.nx), math.clamp(math.floor((p.Z - g.oz) / GRID) + 1, 1, g.nz) end local lastCells = {} local function hpush(h, c, i, j) h[#h + 1] = {c, i, j} local n = #h while n > 1 do local p = n // 2 if h[p][1] <= h[n][1] then break end h[p], h[n] = h[n], h[p] n = p end end local function hpop(h) local top = h[1] local last = table.remove(h) if #h > 0 then h[1] = last local n = 1 while true do local l, rr, m = n * 2, n * 2 + 1, n if h[l] and h[l][1] < h[m][1] then m = l end if h[rr] and h[rr][1] < h[m][1] then m = rr end if m == n then break end h[m], h[n] = h[n], h[m] n = m end end return top end local function canStep(g, i, j, di, dj) local ni, nj = i + di, j + dj return ni >= 1 and nj >= 1 and ni <= g.nx and nj <= g.nz and cellWalk(g, ni, nj) and (di == 0 or dj == 0 or (cellWalk(g, i + di, j) and cellWalk(g, i, j + dj))) and edgeOK(g, i, j, ni, nj) end local REACH = 60 local function reachField(g, pos) local ci, cj = toCell(g, pos) local d = {[ci * 4096 + cj] = 0} local h = {{0, ci, cj}} while #h > 0 do local top = hpop(h) local c, i, j = top[1], top[2], top[3] if c <= d[i * 4096 + j] then for di = -1, 1 do for dj = -1, 1 do if (di ~= 0 or dj ~= 0) and canStep(g, i, j, di, dj) then local nc = c + GRID * ((di ~= 0 and dj ~= 0) and 1.414 or 1) local nk = (i + di) * 4096 + j + dj if nc < REACH and nc < (d[nk] or math.huge) then d[nk] = nc hpush(h, nc, i + di, j + dj) end end end end end end return d end local function planPath(ppl, goal, r, weight) local z = zc if not z then return nil end local g = gridFor(z) local cats = {} for _, e in ipairs(ppl) do if isCatcher(e) then cats[#cats + 1] = e end end local fields = {} if weight > 0 then for n, c in ipairs(cats) do fields[n] = reachField(g, c.pos) end end local function danger(p, t, k) local s = 0 for n, c in ipairs(cats) do local rel = flat(p - c.pos) local run = fields[n] and fields[n][k] or math.max(REACH, rel.Magnitude) local heading = rel.Magnitude > 0.1 and math.clamp(c.vel:Dot(rel.Unit) * 0.35, 0, 12) or 0 -- already running that way local d = run - heading - 0.5 * CATSPD * t if d < R_SAFE * 2.5 then s += 10 * math.exp(-((math.max(d, 0) / R_SAFE) ^ 2)) end end return s end local si, sj = toCell(g, r.Position) local sk = si * 4096 + sj local dist, prev, dz = {[sk] = 0}, {}, {} local heap = {{0, si, sj}} local function push(c, i, j) local h = heap h[#h + 1] = {c, i, j} local n = #h while n > 1 do local p = n // 2 if h[p][1] <= h[n][1] then break end h[p], h[n] = h[n], h[p] n = p end end local function pop() local h = heap local top = h[1] local last = table.remove(h) if #h > 0 then h[1] = last local n = 1 while true do local l, rr, m = n * 2, n * 2 + 1, n if h[l] and h[l][1] < h[m][1] then m = l end if h[rr] and h[rr][1] < h[m][1] then m = rr end if m == n then break end h[m], h[n] = h[n], h[m] n = m end end return top end local found, pops = nil, 0 while #heap > 0 and pops < 9000 do local top = pop() local c, i, j = top[1], top[2], top[3] local k = i * 4096 + j if c <= (dist[k] or math.huge) then pops += 1 if k ~= sk and inZone(goal, cellPos(g, i, j), -1) then found = k break end for di = -1, 1 do for dj = -1, 1 do if di ~= 0 or dj ~= 0 then local ni, nj = i + di, j + dj if canStep(g, i, j, di, dj) then local nk = ni * 4096 + nj local d = dz[nk] if d == nil then local p = cellPos(g, ni, nj) d = (weight > 0 and #cats > 0 and not inZone(goal, p)) and danger(p, flat(p - r.Position).Magnitude / RUNSPD, nk) or 0 dz[nk] = d end local edge = not (cellWalk(g, math.max(ni - 1, 1), nj) and cellWalk(g, math.min(ni + 1, g.nx), nj) and cellWalk(g, ni, math.max(nj - 1, 1)) and cellWalk(g, ni, math.min(nj + 1, g.nz))) local nc = c + GRID * ((di ~= 0 and dj ~= 0) and 1.414 or 1) * (1 + d * weight * 0.5) * ((weight > 0 and lastCells[nk]) and 0.85 or 1) * (edge and 1.35 or 1) if nc < (dist[nk] or math.huge) then dist[nk] = nc prev[nk] = k push(nc, ni, nj) end end end end end end end if not found then return nil end local cells = {} local k = found while k and k ~= sk do table.insert(cells, 1, k) k = prev[k] end if weight > 0 then table.clear(lastCells) for _, ck in ipairs(cells) do for di = -1, 1 do for dj = -1, 1 do lastCells[ck + di * 4096 + dj] = true end end end end local y = r.Position.Y - 2.6 local pts, lastDir = {}, nil for n, ck in ipairs(cells) do local i, j = ck // 4096, ck % 4096 local nxt = cells[n + 1] local dir = nxt and ((nxt // 4096 - i) * 10 + (nxt % 4096 - j)) or nil if dir ~= lastDir or n % 4 == 0 or not nxt then local p = cellPos(g, i, j) pts[#pts + 1] = {pos = Vector3.new(p.X, y, p.Z), risk = dz[ck] or 0} end lastDir = dir end return pts end H.planTest = function(weight) local z, r = zones(), myRoot() if not (z and r) then return "no field" end local goal = flat(r.Position - z.a.Position).Magnitude < flat(r.Position - z.b.Position).Magnitude and z.b or z.a local t = os.clock() local pts = planPath(people(), goal, r, weight or 1) return pts, os.clock() - t, goal end local function runGoal() local z, r = zones(), myRoot() local phase = sa("Phase") if not (z and r and la("GameRole") == "Runner" and la("RunState") == "Active" and RUN[phase]) then run.key = nil return nil end if phase == "HeroRun" and sa("HeroUserId") ~= LP.UserId then return nil, "waiting (hero is crossing)" end local key = tostring(sa("RunNumber")) .. phase if run.key ~= key then run.key, run.done = key, false run.from = flat(r.Position - z.a.Position).Magnitude < flat(r.Position - z.b.Position).Magnitude and "a" or "b" run.seed = math.random() * 1000 run.off, run.route, run.routeAt = nil, nil, 0 end local from, goal = z[run.from], z[run.from == "a" and "b" or "a"] if inZone(goal, r.Position, -3) then run.done = true end if run.done then return nil, "safe" end return goal, from end local pick = {inst = nil, pos = nil, untilT = 0} local skipped = setmetatable({}, {__mode = "k"}) local planAt = 0 local function runnerDrive(ppl) local goal, from = runGoal() local r = myRoot() if not goal then H.path = nil if from then H.why = from end pick.inst = nil return nil end if (S.PathESP or S.AutoCross) and os.clock() - planAt > 0.2 then planAt = os.clock() local ok, pts = pcall(planPath, ppl, goal, r, 1) H.path = ok and pts or nil end if not S.AutoCross then return nil end if S.Route ~= "Safe path" and os.clock() - (run.routeAt or 0) > 1 then run.routeAt = os.clock() local ok, pts = pcall(planPath, ppl, goal, r, 0) run.route = ok and pts or nil end local route = S.Route == "Safe path" and H.path or run.route or H.path local aim local look = S.Route == "Humanized" and 20 or 10 for _, p in ipairs(route or {}) do if flat(p.pos - r.Position).Magnitude > look then aim = p.pos break end end if not aim then aim = route and route[#route] and route[#route].pos or goal.Position end if S.Route == "Humanized" then if not run.off or os.clock() > run.aimUntil then run.off = math.noise(os.clock() * 0.12, run.seed or 0) * 18 + math.noise(os.clock() * 0.55, (run.seed or 0) + 50) * 4 run.aimUntil = os.clock() + 0.25 + math.random() * 0.4 end local dist = flat(aim - r.Position).Magnitude local f0 = unit(flat(aim - r.Position)) local side = Vector3.new(-f0.Z, 0, f0.X) local off = math.clamp(run.off, -dist * 0.5, dist * 0.5) -- at most ~27 degrees off the line, never backwards local g = zc and gridFor(zc) local cand = aim + side * off for _ = 1, 4 do if not g or cellWalk(g, toCell(g, cand)) then break end off *= 0.5 cand = aim + side * off end aim = cand end local fwd = unit(flat(aim - r.Position)) local want, why = fwd, S.Route == "Safe path" and "following the safe path" or "crossing" local function threat(pos, rad) for _, e in ipairs(ppl) do if isCatcher(e) and flat(e.pos - pos).Magnitude < rad then return true end end end local best if S.RescueDetour and S.AutoRescue then local bd for _, e in ipairs(ppl) do if e.role == "Runner" and e.downed and e.rescuable and (not e.helper or e.helper == LP.UserId) then local d = flat(e.pos - r.Position).Magnitude if d < 35 and not threat(e.pos, 12) and (not bd or d < bd) then best, bd = e.pos, d end end end if best then why = "going to revive" end end if not best then if pick.inst then local rel = flat(pick.pos - r.Position) if not pick.inst.Parent or os.clock() > pick.untilT or rel:Dot(fwd) < -1 or threat(pick.pos, R_SAFE * 0.6) then skipped[pick.inst] = true pick.inst = nil end end if not pick.inst then local bs local function scan(folder, on, label) if not (on and folder) then return end for _, gm in ipairs(folder:GetChildren()) do local pos = not skipped[gm] and (gm:IsA("BasePart") and gm.Position or (gm:IsA("Model") and gm:GetPivot().Position)) if pos then local value = label == "cash" and cashValue(gm) or 50 local reach = value >= 500 and 30 or value >= 150 and 18 or 10 local rel = flat(pos - r.Position) local ahead, side = rel:Dot(fwd), (rel - fwd * rel:Dot(fwd)).Magnitude local score = rel.Magnitude / math.sqrt(value / 50) if ahead > 4 and ahead < 40 and side < reach and side < ahead * 1.2 and not threat(pos, R_SAFE * 0.7) and (not bs or score < bs) then bs = score pick.inst, pick.pos, pick.label = gm, pos, label end end end end scan(workspace:FindFirstChild("LocalRunnerGems"), S.Gems, "a gem") scan(workspace:FindFirstChild("LocalRunnerHeatCash"), S.Cash, "cash") if pick.inst then pick.untilT = os.clock() + 2 end end if pick.inst then best = pick.pos + unit(flat(pick.pos - r.Position)) * 3 -- run through it, don't brake on it why = "grabbing " .. pick.label end end if best then want = unit(flat(best - r.Position)) end local push, danger = Vector3.zero, 0 for _, e in ipairs(ppl) do if isCatcher(e) then local away = flat(r.Position - (e.pos + e.vel * 0.35)) local d = away.Magnitude if d < 15 then local wgt = ((15 - d) / 15) ^ 2 local a = unit(away) local inLine = (-a):Dot(fwd) > 0.85 and d < 10 -- catcher straight ahead, close if not inLine and a:Dot(fwd) < 0 then a = unit(a - fwd * a:Dot(fwd)) end -- keep only the sideways part push += a * wgt danger = math.max(danger, wgt) end end end local left = (sa("EndsAt") or 0) - now() local p1 = H.path and H.path[math.min(2, #H.path)] if S.Route ~= "Straight" and inZone(from, r.Position, -1) and left > 7 and ((p1 and p1.risk > 6) or danger > 0.5) then H.why = "waiting for an opening" return Vector3.zero end H.why = danger > 0.3 and "dodging around a catcher" or why local dir = unit(flat(want + push * (S.Route == "Straight" and 0.7 or S.Route == "Humanized" and 0.85 or 1.0))) if danger < 0.5 and dir:Dot(fwd) < 0.2 then dir = unit(dir - fwd * dir:Dot(fwd) + fwd * 0.2) end return dir end local function hitRisk(ppl) local r = myRoot() if not (r and la("GameRole") == "Runner" and la("RunState") == "Active") then return 0 end local risk, cat = 0, nil for _, e in ipairs(ppl) do if isCatcher(e) then local rel = flat(r.Position - e.pos) local d = rel.Magnitude local closing = d > 0.1 and e.vel:Dot(rel.Unit) or 0 local facing = d > 0.1 and flat(e.root.CFrame.LookVector):Dot(rel.Unit) or 1 local onMe = e.ch:GetAttribute("ReachTargetUserId") == LP.UserId or (e.bot and e.ch:GetAttribute("BotPursuitTarget") == LP.UserId and d < 12) local lv = 0 if e.tackling and (d < 16 or onMe) or d < 7 or (d < 15 and closing > 12 and facing > 0.6) then lv = 2 elseif d < 16 then lv = 1 end if lv > risk then risk, cat = lv, e end end end return risk, cat end local function tryDodge(ppl) local sd = showdown() if not (S.AutoDodge and okB and (sd or (la("GameRole") == "Runner" and la("RunState") == "Active"))) then return end local ch, r = LP.Character, myRoot() if not (ch and r) or ch:GetAttribute("DashReady") ~= true or os.clock() < dodgeUntil then return end for _, e in ipairs(ppl) do if (sd and fighter(e)) or (not sd and isCatcher(e)) then local rel = flat(r.Position - e.pos) local d = rel.Magnitude if d < S.DodgeDist and d > 0.1 then local closing = e.vel:Dot(rel.Unit) if e.tackling or (not sd and (closing > 8 or d < S.DodgeDist * 0.45)) then local side = Vector3.new(-rel.Unit.Z, 0, rel.Unit.X) if side:Dot(e.vel) > 0 then side = -side end local z = zc if z then -- don't dash into a wall local w, _, hw = zoneLocal(z.a, r.Position + side * 10) if math.abs(w) > hw - 4 then side = -side end end dodgeDir, dodgeUntil = unit(side + rel.Unit * 0.35), os.clock() + 0.3 task.defer(function() if KEYS then tap(Enum.KeyCode.Space) else BoostInput.request() end end) H.dodges = (H.dodges or 0) + 1 return end end end end end local rescuing = false local function tryRescue(ppl) if rescuing or not (S.AutoRescue and la("GameRole") == "Runner" and la("RunState") == "Active") then return end local r = myRoot() if not r then return end for _, e in ipairs(ppl) do if e.role == "Runner" and e.downed and e.rescuable and (not e.helper or e.helper == LP.UserId) and flat(e.pos - r.Position).Magnitude < RescueCfg.Range - 0.6 then rescuing = true task.spawn(function() RescueEvent:FireServer("Begin", e.uid) task.wait(RescueCfg.HoldSeconds + 0.1) RescueEvent:FireServer("Finish", e.uid) H.rescues = (H.rescues or 0) + 1 task.wait(0.8) rescuing = false end) return end end end H.target = nil local function catcherDrive(ppl) local z, r = zones(), myRoot() if not (z and r and S.AutoChase and la("GameRole") == "Catcher" and la("RunState") == "Active" and RUN[sa("Phase")]) then H.target = nil return nil end local speed = MoveCfg.MaxSpeed * MoveCfg.CatcherSpeedMultiplier local best, bs, bpt for _, e in ipairs(ppl) do if isRunner(e) and not anyZone(e.pos) then local pt, score if e.cloaked and e.mem.cloakAt then local v = e.mem.cloakVel if v.Magnitude > MoveCfg.MaxSpeed then v = v.Unit * MoveCfg.MaxSpeed end pt = e.mem.cloakPos + v * 3 + e.mem.guess score = flat(pt - r.Position).Magnitude / speed * 1.6 -- a visible runner is a better bet else local t = flat(e.pos - r.Position).Magnitude / speed pt = e.pos for _ = 1, 2 do pt = e.pos + e.vel * math.min(t, 1.2) t = flat(pt - r.Position).Magnitude / speed end score = S.Targeting == "Nearest" and flat(e.pos - r.Position).Magnitude or t end if S.BountyFirst and bounties[e.uid] then score *= 0.6 end if not bs or score < bs then best, bs, bpt = e, score, pt end end end H.target = best if best and best.cloaked then H.why = "guessing where " .. best.name .. " pops out (cloaked)" if flat(bpt - r.Position).Magnitude < 4 then return Vector3.zero end -- wait for it there return unit(flat(bpt - r.Position)) end if best then H.why = "chasing " .. best.name return unit(flat(bpt - r.Position)) end local mid = z.mid if flat(mid - r.Position).Magnitude > 6 then H.why = "guarding the middle" return unit(flat(mid - r.Position)) end H.why = "guarding the middle" return Vector3.zero end local function showdownDrive(ppl) if not showdown() then return nil end local r = myRoot() if not r then return nil end local c, rad = ring() if S.SDRing and c and flat(r.Position - c).Magnitude > rad - 7 then H.why = "back inside the ring" return unit(flat(c - r.Position)) end if not S.SDFight then return nil end local best, bs for _, e in ipairs(ppl) do if fighter(e) and (not c or flat(e.pos - c).Magnitude < rad + 2) then local score = flat(e.pos - r.Position).Magnitude - ((S.BountyFirst and bounties[e.uid]) and 25 or 0) if not bs or score < bs then best, bs = e, score end end end H.target = best if best then H.why = "fighting " .. best.name local pt = best.pos + best.vel * 0.25 if c and flat(pt - c).Magnitude > rad - 6 then pt = c + unit(flat(pt - c)) * (rad - 8) end -- don't follow them out of the ring return unit(flat(pt - r.Position)) end return c and unit(flat(c - r.Position)) or nil end local lastMelee = 0 local meleeFn local function findMelee() if meleeFn ~= nil or not getconnections then return meleeFn end meleeFn = false for _, c in ipairs(getconnections(UIS.InputBegan)) do local f = c.Function if f then local ok, src = pcall(debug.info, f, "s") if ok and tostring(src):find("MeleeInputClient") then meleeFn = f break end end end return meleeFn end local function swing(target) local f = findMelee() if f then task.spawn(f, {UserInputType = Enum.UserInputType.MouseButton1, KeyCode = Enum.KeyCode.Unknown}, false) return end local cam = workspace.CurrentCamera local sp, onScreen = cam:WorldToViewportPoint(target.pos - Vector3.new(0, 2, 0)) if onScreen then local inset = game:GetService("GuiService"):GetGuiInset() VIM:SendMouseButtonEvent(sp.X, sp.Y + inset.Y, 0, true, game, 1) task.delay(0.04, function() VIM:SendMouseButtonEvent(sp.X, sp.Y + inset.Y, 0, false, game, 1) end) end end conn(MeleeEvent.OnClientEvent, function(id, ok, info) if os.clock() - lastMelee > 1.5 then return end if ok then H.hits = (H.hits or 0) + 1 else H.rejected = (H.rejected or 0) + 1 H.rejectWhy = type(info) == "table" and tostring(info.reason) or "?" end end) local function tryStrike(ppl) local sd = showdown() and S.SDFight if not sd and not (la("GameRole") == "Catcher" and la("RunState") == "Active" and RUN[sa("Phase")]) then return end if not (sd or S.AutoMelee or S.AutoTackle) then return end local ch, r = LP.Character, myRoot() if not (ch and r) or ch:GetAttribute("TackleActive") or ch:GetAttribute("MovementLocked") or ch:GetAttribute("Ragdolled") then return end local near, nd for _, e in ipairs(ppl) do if ((sd and fighter(e)) or (not sd and isRunner(e) and not anyZone(e.pos))) and not (e.cloaked and flat(e.pos - r.Position).Magnitude > 4) then local d = flat(e.pos + e.vel * 0.12 - r.Position).Magnitude if not nd or d < nd then near, nd = e, d end end end if not near then return end local rel = unit(flat(near.pos + near.vel * 0.12 - r.Position)) local look = unit(flat(r.CFrame.LookVector)) if (sd or S.AutoMelee) and nd <= S.MeleeRange and os.clock() - lastMelee >= S.MeleeCD and look:Dot(rel) > 0.8 then lastMelee = os.clock() swing(near) H.swings = (H.swings or 0) + 1 elseif (sd or S.AutoTackle) and okT and nd <= S.TackleRange and nd > math.min(S.MeleeRange, 4) and flat(r.CFrame.LookVector):Dot(rel) > 0.82 and Tackle.remaining() <= 0.02 and os.clock() - (H.lastDive or 0) > 1.2 then H.lastDive = os.clock() -- dive cooldown is 1.1 s if KEYS then tap(Enum.KeyCode.E) else Tackle.request() end H.dives = (H.dives or 0) + 1 end end local picked = {} local function tryPicks() local phase, rn = sa("Phase"), tostring(sa("RunNumber")) if S.AutoChoice and phase == "HeroChoice" and sa("SelectedUserId") == LP.UserId and picked["c" .. rn] == nil then picked["c" .. rn] = true local ans = S.ChoicePick == "Random" and (math.random() < 0.5 and "Hero" or "Chicken") or S.ChoicePick task.delay(0.6 + math.random() * 1.2, function() GameAction:FireServer("HeroChoice", ans) end) notify("Chicken or Hero", "Picked " .. ans) end if S.AutoPick and phase == "SelectHero" and sa("LeadUserId") == LP.UserId and picked["s" .. rn] == nil then local list = {} for _, p in ipairs(participants()) do if p ~= LP and p:GetAttribute("GameRole") == "Runner" and p:GetAttribute("RunState") ~= "Caught" then list[#list + 1] = p end end if #list > 0 then picked["s" .. rn] = true local pick = list[math.random(#list)] if S.PickMode == "Fewest wins" then table.sort(list, function(a, b) local function wins(p) if typeof(p) ~= "Instance" then return tonumber(p:GetAttribute("Wins")) or 0 end local w = p:FindFirstChild("leaderstats") and p.leaderstats:FindFirstChild("Wins") return w and w.Value or 0 end return wins(a) < wins(b) end) pick = list[1] end task.delay(0.6, function() GameAction:FireServer("SelectHero", pick.UserId) end) notify("Lead catcher", "Picked " .. pick.DisplayName .. " to cross") end end end local okG, GearCatalog = pcall(require, CoH.Gear.GearCatalog) local okGP, GearPred = pcall(require, CoH.Gear.GearPredictionClient) local ArmoryEv = CoH:FindFirstChild("Weapons") and CoH.Weapons:FindFirstChild("ArmoryEvent") local armory if ArmoryEv then conn(ArmoryEv.OnClientEvent, function(k, st) if k == "State" and type(st) == "table" then armory = st end end) task.delay(1, function() ArmoryEv:FireServer("Get") end) end local function myAbility() if not (armory and okG) then return nil end local ok, id = pcall(GearCatalog.equippedForRole, armory, la("GameRole")) local g = ok and id and GearCatalog.get(id) if g and g.Kind == "Ability" and (type(armory.abilities) ~= "table" or armory.abilities[id]) then return id, g.Name end end H.ability = function() local id, name = myAbility() return name or id end local lastAb = 0 local function useAbility(id, dir, why) if os.clock() - lastAb < 1 then return end lastAb = os.clock() if KEYS then tap(Enum.KeyCode.Q) else pcall(GearPred.request, id, unit(flat(dir)), "UseAbility") end H.abilities = (H.abilities or 0) + 1 H.why = why end local DEFENSIVE = {OneHitShield = 2, EmergencyAirhorn = 2, AlleyOop = 2, TimeWarp = 2, Burrow = 2} local ESCAPE = {Cloak = true, FartCloud = true, PumpkinBomb = true, InflatableDecoy = true, BikeGetaway = true} local THROWN = {BearTrap = 16, BowlingBall = 24, Slapstick = 24, FrostQuake = 20} local CLOSE = {BigDagger = 10, RufusLeash = 14, SkateSpin = 8, SpringBox = 12, KingsDemise = 12, PumpkinBombChaser = 12} local function tryAbility(ppl) if not okGP or not (la("InMatch") == true or la("PracticeActive") == true) or la("RunState") ~= "Active" then return end if now() < (tonumber(la("AbilityReadyAt")) or 0) or os.clock() - lastAb < 1 then return end local id = myAbility() local r = myRoot() if not (id and r) then return end local hum = LP.Character:FindFirstChildOfClass("Humanoid") local moveDir = hum and hum.MoveDirection.Magnitude > 0.1 and hum.MoveDirection or flat(r.CFrame.LookVector) if la("GameRole") == "Runner" and S.AbilityRunner then local cat = H.riskCat local away = cat and unit(flat(r.Position - cat.pos)) or moveDir if DEFENSIVE[id] then if H.risk == 2 and not (id == "TimeWarp" and LP.Character:GetAttribute("DashReady") == true) then useAbility(id, id == "Burrow" and away or moveDir, "used " .. id .. " (hit incoming)") end elseif ESCAPE[id] then if cat and (H.risk == 2 or (H.risk == 1 and cat.vel:Dot(away) > 4)) then useAbility(id, moveDir, "used " .. id .. " (being chased)") end elseif id == "PocketDoor" then if cat and H.risk >= 1 and moveDir:Dot(unit(flat(cat.pos - r.Position))) > 0.5 then useAbility(id, unit(flat(cat.pos - r.Position)), "door between you and a catcher") end elseif id == "SoulReap" then for _, e in ipairs(ppl) do if e.role == "Runner" and e.downed and flat(e.pos - r.Position).Magnitude < 15 then useAbility(id, moveDir, "reaping souls") break end end elseif id ~= "Spike" and H.risk == 2 then useAbility(id, moveDir, "used " .. id) end elseif la("GameRole") == "Catcher" and S.AbilityCatcher then local near, nd for _, e in ipairs(ppl) do if isRunner(e) and not anyZone(e.pos) and not e.cloaked then local d = flat(e.pos - r.Position).Magnitude if not nd or d < nd then near, nd = e, d end end end if id == "PiratesCall" then if near then useAbility(id, moveDir, "raised the crew") end return end if id == "BrokenVow" then for _, e in ipairs(ppl) do if e.role == "Runner" and (e.downed or e.state == "Caught") and flat(e.pos - r.Position).Magnitude < 15 then useAbility(id, moveDir, "broken vow") break end end return end if not near then return end local lead = near.pos + near.vel * math.clamp(nd / 40, 0.1, 0.6) local to = unit(flat(lead - r.Position)) local facing = flat(r.CFrame.LookVector):Dot(to) if THROWN[id] then if nd > 5 and nd < THROWN[id] and facing > 0.85 then useAbility(id, to, "threw " .. id) end elseif CLOSE[id] then if nd < CLOSE[id] then useAbility(id, to, "used " .. id) end elseif id == "WarHorn" then if nd < 35 and facing > 0.8 then useAbility(id, to, "war horn on " .. near.name) end elseif id == "RocketShoes" then if nd > 9 and nd < 22 and facing > 0.85 then useAbility(id, to, "rocket shoes") end elseif nd < 12 then useAbility(id, to, "used " .. id) end end end local ppl = {} local drawPath -- set in the visuals section local tick = 0 conn(RunS.Heartbeat, function() if paused then drive = nil return end tick += 1 if tick % 2 == 0 then ppl = people() local d = showdownDrive(ppl) if d == nil and not showdown() then d = runnerDrive(ppl) end if d == nil and not showdown() then d = catcherDrive(ppl) end drive = d if d == nil and not (la("GameRole") == "Runner" or la("GameRole") == "Catcher") then H.why = "idle" end H.risk, H.riskCat = hitRisk(ppl) if drawPath then drawPath() end tryRescue(ppl) tryStrike(ppl) tryAbility(ppl) if tick % 10 == 0 then tryPicks() end end tryDodge(ppl) end) local voted local function tryVote() if not (S.AutoVote and MapVoteState) then return end local ok, st = pcall(Http.JSONDecode, Http, MapVoteState.Value) if not ok or type(st) ~= "table" or st.phase ~= "Voting" or voted == st.token or type(st.options) ~= "table" then return end local pick for _, fav in ipairs({S.Fav1, S.Fav2, S.Fav3}) do for _, o in ipairs(st.options) do if fav ~= "None" and o.name == fav then pick = o break end end if pick then break end end if not pick then -- back the one that's winning local most = -1 for _, o in ipairs(st.options) do local v = tonumber(o.votes) or (type(st.votes) == "table" and tonumber(st.votes[o.id])) or 0 if v > most then pick, most = o, v end end end if pick then voted = st.token MapVoteEvent:FireServer("Vote", pick.id, st.token) notify("Map vote", "Voted " .. tostring(pick.name)) end end if MapVoteState then conn(MapVoteState.Changed, function() task.delay(0.5, tryVote) end) end local JourneyEvent = CoH:FindFirstChild("Progression") and CoH.Progression:FindFirstChild("JourneyEvent") local ArmoryEvent = CoH:FindFirstChild("Weapons") and CoH.Weapons:FindFirstChild("ArmoryEvent") local CodeEvent = CoH:FindFirstChild("Presentation") and CoH.Presentation:FindFirstChild("CodeEvent") local seasonId pcall(function() seasonId = require(CoH.Progression.JourneyConfig).SeasonId end) task.spawn(function() local lastJ, lastL = -999, -999 while H.alive do if not paused and la("InMatch") ~= true then if S.Journey and JourneyEvent and os.clock() - lastJ > 180 then lastJ = os.clock() JourneyEvent:FireServer("ClaimAll", nil, seasonId) end local ready = tonumber(la("LikeRewardReadyAt")) if S.LikeReward and ArmoryEvent and ready and now() >= ready and os.clock() - lastL > 60 then lastL = os.clock() ArmoryEvent:FireServer("ClaimLikeReward") end tryVote() if S.OpenDuffles and HeatTrackEvent then if (tonumber(la("HeatDuffles")) or 0) >= 1 then HeatTrackEvent:FireServer("Open", "Duffle") task.wait(4) elseif (tonumber(la("HeatVaults")) or 0) >= 1 then HeatTrackEvent:FireServer("Open", "Vault") task.wait(4) end end end task.wait(5) end end) local CODEFILE = "HussValleyHub_codes_" .. LP.UserId .. ".json" local codeCache = {} pcall(function() codeCache = Http:JSONDecode(readfile(CODEFILE)) end) local codeLbl local function codeStatus(t) if codeLbl then codeLbl("Codes: " .. t) end end local function fetchCodes() local list, seen = {}, {} local function add(c) c = tostring(c):gsub(" ", ""):gsub("&", "&"):gsub("^%s+", ""):gsub("%s+$", "") if #c > 1 and #c < 40 and not seen[c:lower()] then seen[c:lower()] = true list[#list + 1] = c end end local ok, body = pcall(game.HttpGet, game, "https://robloxden.com/game-codes/huss-valley") if ok then for exp, code in body:gmatch('data%-expired="(%a+)".-data%-copy="([^"]+)"') do if exp == "false" then add(code) end end end local ok2, b2 = pcall(game.HttpGet, game, "https://beebom.com/huss-valley-codes/") if ok2 then local cut = b2:find("[Ee]xpired [^<]-[Cc]odes") for code in (cut and b2:sub(1, cut) or b2):gmatch("
  • %s*([^<]+)") do add(code) end end return list, ok, ok2 end local codeReply if CodeEvent then conn(CodeEvent.OnClientEvent, function(kind, okc, msg) if kind == "Result" then codeReply = {okc == true, tostring(msg)} end end) end local redeeming = false function H.RedeemCodes() if redeeming or not CodeEvent then return end redeeming = true codeStatus("fetching the latest list…") local list, a, b = fetchCodes() local todo = {} for _, c in ipairs(list) do if not codeCache[c] then todo[#todo + 1] = c end end local got = {} for i, c in ipairs(todo) do while la("InMatch") == true and H.alive do codeStatus("waiting for the lobby to try " .. #todo - i + 1 .. " new codes") task.wait(5) end codeReply = nil CodeEvent:FireServer("Redeem", c) local t = os.clock() while not codeReply and os.clock() - t < 6 do task.wait(0.1) end local m = codeReply and codeReply[2]:lower() or "" local res = codeReply and codeReply[1] and "redeemed" or (m:find("already") or m:find("claimed")) and "claimed" or codeReply and "invalid" or "no reply" if res ~= "no reply" then codeCache[c] = res end if res == "redeemed" then got[#got + 1] = c end codeStatus(string.format("trying %d/%d: %s → %s", i, #todo, c, res)) task.wait(2 + math.random()) end pcall(writefile, CODEFILE, Http:JSONEncode(codeCache)) local tried = 0 for _ in pairs(codeCache) do tried += 1 end codeStatus(string.format("%d listed online (RobloxDen %s, Beebom %s) · %d tried on this account%s", #list, a and "ok" or "failed", b and "ok" or "failed", tried, #got > 0 and ("\nNew: " .. table.concat(got, ", ")) or "")) if #got > 0 then notify("Codes", "Redeemed " .. table.concat(got, ", ")) end redeeming = false end task.spawn(function() task.wait(8) while H.alive do if S.AutoCodes and not paused then H.RedeemCodes() end task.wait(900) end end) local idleConns = {} local function setAFK(on) for _, c in ipairs(idleConns) do pcall(function() c:Enable() end) end idleConns = {} if on and getconnections then for _, c in ipairs(getconnections(LP.Idled)) do pcall(function() c:Disable() end) idleConns[#idleConns + 1] = c end end end conn(LP.Idled, function() if not S.AntiAFK then return end local VU = game:GetService("VirtualUser") VU:CaptureController() VU:ClickButton2(Vector2.new()) end) local ESPF = inst("Folder", {Name = "HVH_ESP"}, HUI) H.insts[#H.insts + 1] = ESPF local COL = {Catcher = Color3.fromRGB(235, 80, 70), Runner = Color3.fromRGB(80, 200, 235), Downed = Color3.fromRGB(240, 190, 60), Other = Color3.fromRGB(170, 170, 170)} local esp = {} local function espFor(e) local o = esp[e.ch] if not o then o = {} o.hl = inst("Highlight", {FillTransparency = 0.75, OutlineTransparency = 0, DepthMode = Enum.HighlightDepthMode.AlwaysOnTop, Adornee = e.ch}, ESPF) o.bb = inst("BillboardGui", {Size = UDim2.fromOffset(160, 34), StudsOffset = Vector3.new(0, 3.2, 0), AlwaysOnTop = true, Adornee = e.root, LightInfluence = 0}, ESPF) o.tx = inst("TextLabel", {Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, Font = Enum.Font.GothamBold, TextSize = 12, TextStrokeTransparency = 0.4, RichText = true}, o.bb) esp[e.ch] = o end return o end local DrawF = inst("Folder", {Name = "HVH_Draw"}, workspace.CurrentCamera) H.insts[#H.insts + 1] = DrawF local function piece(shape) return inst("Part", {Shape = shape or Enum.PartType.Block, Anchored = true, CanCollide = false, CanQuery = false, CanTouch = false, CastShadow = false, Material = Enum.Material.Neon, Transparency = 1, Size = Vector3.one}, DrawF) end local segs, catDiscs = {}, {} local myDisc = piece(Enum.PartType.Cylinder) local FLAT = CFrame.Angles(0, 0, math.rad(90)) local function riskCol(x) return x < 1.5 and Color3.fromRGB(90, 230, 120) or x < 5 and Color3.fromRGB(245, 200, 70) or Color3.fromRGB(240, 80, 70) end drawPath = function() local pts, r = S.PathESP and H.path, myRoot() local n = (pts and r) and #pts or 0 for i = 1, n do local s = segs[i] or piece() segs[i] = s local a = i == 1 and Vector3.new(r.Position.X, pts[1].pos.Y, r.Position.Z) or pts[i - 1].pos local b = pts[i].pos local len = (b - a).Magnitude if len > 0.05 then s.Size = Vector3.new(0.7, 0.15, len) s.CFrame = CFrame.lookAt((a + b) / 2, b) s.Color = riskCol(pts[i].risk) s.Transparency = 0.25 else s.Transparency = 1 end end for i = n + 1, #segs do segs[i].Transparency = 1 end end local catLines = {} local WHITE, YELLOW, ORANGE, RED = Color3.fromRGB(235, 235, 235), Color3.fromRGB(245, 210, 70), Color3.fromRGB(255, 140, 40), Color3.fromRGB(255, 40, 40) local function lineFor(e) local ch, root = e.ch, e.root local phase, look = ch:GetAttribute("ReachPhase"), root.CFrame.LookVector local function vec(a) local v = ch:GetAttribute(a) return typeof(v) == "Vector3" and v or look end if ch:GetAttribute("TackleActive") == true then return vec("TackleDirection"), 14, RED, 0, "DIVE" end if phase == "Active" then return vec("ReachDirection"), 9, RED, 0, "SWING" end if phase == "Windup" then return vec("ReachDirection"), 9, ORANGE, 0, "SWING" end if phase == "Tracking" then local tid = ch:GetAttribute("ReachTargetUserId") local tr for _, o in ipairs(ppl) do if o.uid == tid then tr = o.root break end end if tid == LP.UserId then tr = myRoot() end local to = tr and flat(tr.Position - root.Position) or look return to, math.min(to.Magnitude, 14), tid == LP.UserId and ORANGE or YELLOW, 0.1, tid == LP.UserId and "LOCKED ON YOU" or nil end local chase = ch:GetAttribute("BotPursuitTarget") -- bots say who they're chasing if chase == LP.UserId then local me = myRoot() local to = me and flat(me.Position - root.Position) if to and to.Magnitude < 25 then return to, math.min(to.Magnitude, 14), ORANGE, 0.1, "LOCKED ON YOU" end end local v = e.vel return v.Magnitude > 3 and v or look, math.clamp(v.Magnitude * 0.6, 6, 20), WHITE, 0.45, nil end conn(RunS.RenderStepped, function() local r = myRoot() local show = S.DangerRing and r and la("GameRole") == "Runner" and la("RunState") == "Active" local lines = S.DirLines and r and ((la("GameRole") == "Runner" and la("RunState") == "Active") or showdown()) local seen = {} for _, e in ipairs(ppl) do if e.root.Parent and ((showdown() and fighter(e)) or isCatcher(e)) then if show and isCatcher(e) then seen[e.ch] = true local d = catDiscs[e.ch] or piece(Enum.PartType.Cylinder) catDiscs[e.ch] = d d.Size = Vector3.new(0.12, 32, 32) -- ~16 stud dive + reach d.CFrame = CFrame.new(e.root.Position - Vector3.new(0, 2.8, 0)) * FLAT d.Color = Color3.fromRGB(240, 80, 70) d.Transparency = H.riskCat == e and 0.6 or 0.85 end if lines then seen[e.root] = true local ln = catLines[e.root] or piece() catLines[e.root] = ln local dir, len, col, tr = lineFor(e) dir = unit(flat(dir)) if dir.Magnitude > 0 then local a = e.root.Position - Vector3.new(0, 1.6, 0) ln.Size = Vector3.new(0.3, 0.3, len) ln.CFrame = CFrame.lookAt(a + dir * len / 2, a + dir * len) ln.Color, ln.Transparency = col, tr else ln.Transparency = 1 end end end end for root, ln in pairs(catLines) do if not seen[root] then ln:Destroy() catLines[root] = nil end end if show then myDisc.Size = Vector3.new(0.14, 6, 6) myDisc.CFrame = CFrame.new(r.Position - Vector3.new(0, 2.75, 0)) * FLAT myDisc.Color = H.risk == 2 and Color3.fromRGB(240, 80, 70) or H.risk == 1 and Color3.fromRGB(245, 200, 70) or Color3.fromRGB(90, 230, 120) myDisc.Transparency = H.risk == 2 and 0.2 or 0.45 else myDisc.Transparency = 1 end for ch, d in pairs(catDiscs) do if not seen[ch] then d:Destroy() catDiscs[ch] = nil end end end) local gemHL = {} local Warn = inst("TextLabel", {AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 70), Size = UDim2.fromOffset(300, 30), BackgroundTransparency = 1, Font = Enum.Font.GothamBold, TextSize = 20, TextColor3 = COL.Catcher, TextStrokeTransparency = 0.3, Text = "", Visible = false}, Gui) local Hud = inst("TextLabel", {Position = UDim2.new(0, 16, 0.5, -60), Size = UDim2.fromOffset(0, 0), AutomaticSize = Enum.AutomaticSize.XY, BackgroundColor3 = C.bg, BackgroundTransparency = 0.15, Font = Enum.Font.Gotham, TextSize = 13, TextColor3 = C.text, RichText = true, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top, Active = true}, Gui) corner(Hud, 8) stroke(Hud) inst("UIPadding", {PaddingTop = UDim.new(0, 8), PaddingBottom = UDim.new(0, 8), PaddingLeft = UDim.new(0, 10), PaddingRight = UDim.new(0, 12)}, Hud) -- the panel grows to fit its text dragify(Hud, Hud) task.spawn(function() while H.alive do local r = myRoot() local seen = {} local closest for _, e in ipairs(ppl) do if S.ESP and e.role ~= "Lobby" and e.role ~= nil then seen[e.ch] = true local o = espFor(e) local col = e.downed and COL.Downed or COL[e.role] or COL.Other o.hl.Enabled = S.Chams o.hl.FillColor, o.hl.OutlineColor = col, col o.bb.Enabled = S.Tags o.bb.Adornee = e.root local d = r and math.floor(flat(e.pos - r.Position).Magnitude) or 0 local tag = e.downed and "DOWNED" or (e.role == "Runner" and e.state ~= "Active") and string.upper(tostring(e.state)) or string.upper(tostring(e.role)) o.tx.TextColor3 = col if e.cloaked then tag = tag .. " · CLOAKED" end if bounties[e.uid] then tag = tag .. " · BOUNTY " .. bounties[e.uid] end o.tx.Text = string.format("%s%s\n%s · %dm", e.name, e.bot and " [bot]" or "", tag, d) end if r and isCatcher(e) then local d = flat(e.pos - r.Position).Magnitude if not closest or d < closest then closest = d end end end for ch, o in pairs(esp) do if not seen[ch] or not ch.Parent then o.hl:Destroy() o.bb:Destroy() esp[ch] = nil end end local gems = workspace:FindFirstChild("LocalRunnerGems") local live = {} if S.GemESP and gems then for _, g in ipairs(gems:GetChildren()) do if g:IsA("BasePart") then live[g] = true if not gemHL[g] then gemHL[g] = inst("Highlight", {FillColor = Color3.fromRGB(120, 255, 160), OutlineColor = Color3.fromRGB(120, 255, 160), FillTransparency = 0.4, DepthMode = Enum.HighlightDepthMode.AlwaysOnTop, Adornee = g}, ESPF) end end end end for g, hl in pairs(gemHL) do if not live[g] then hl:Destroy() gemHL[g] = nil end end local runner = la("GameRole") == "Runner" and la("RunState") == "Active" Warn.Visible = S.Warn and runner and closest ~= nil and closest < 20 if Warn.Visible then Warn.Text = (H.risk == 2 and "HIGH HIT RISK · " or "CATCHER ") .. string.format("%dm", closest) end Hud.Visible = S.HUD if S.HUD then local left = (sa("EndsAt") or 0) - now() Hud.Text = string.format("Huss Valley Hub%s\nRole: %s · %s\nPhase: %s%s\nDoing: %s\nDashes %d · revives %d · dives %d · swings %d (ok %d) · abilities %d", paused and " PAUSED (F6)" or "", tostring(la("GameRole")), tostring(la("RunState")), showdown() and ("SHOWDOWN · " .. tostring(ha("ShowdownLeft")) .. " left") or tostring(sa("Phase")), (not showdown() and left > 0) and string.format(" · %ds", left) or "", H.why or "idle", H.dodges or 0, H.rescues or 0, H.dives or 0, H.swings or 0, H.hits or 0, H.abilities or 0) end task.wait(0.2) end end) local function applyFOV() local cam = workspace.CurrentCamera if S.FOVOn and cam then cam.FieldOfView = S.FOV end end RunS:BindToRenderStep("HVH_FOV", Enum.RenderPriority.Last.Value, applyFOV) local T = UI.tab("Runner") T:section("Crossing") T:toggle("Auto cross​​", "AutoCross", save, "During a run, walks you to the other safe zone, steering around catchers. Press WASD any time to take over.") T:choice("Route", "Route", {"Safe path", "Humanized", "Straight"}, save, "Safe path = follows the drawn safest path. Humanized = its own way across: drifts off the line and re-decides now and then like a person, swerving when a catcher gets close. Straight = the shortest way across (still goes around walls). The drawn path always shows the safest path.") T:toggle("Grab gems on the way​​", "Gems", save, "Picks up gems near your path when no catcher is close to them.") T:toggle("Go revive downed runners​​", "RescueDetour", save, "Detours to downed runners close by (needs Auto revive).") T:section("Defense") T:toggle("Auto dash dodge​​", "AutoDodge", save, "Dashes sideways when a catcher dives, swings or closes in on you. Works while you play manually too.") T:slider("Dodge distance", "DodgeDist", 6, 30, 1, save, "How close a catcher gets before the dodge fires.") T:toggle("Auto revive​​", "AutoRescue", save, "Revives downed runners in reach (the same 0.3 s hold the game uses).") T:toggle("Auto ability​​", "AbilityRunner", save, "Uses your runner ability (Q) at the right moment: Shield, Airhorn, Burrow, Alley-oop, Time Warp when a hit is coming; Cloak, Fart, Decoy, Jack-o-bomb, Bike when you're being chased; Soul Reap near downed teammates.") T:section("Chicken or Hero") T:toggle("Auto choose​​", "AutoChoice", save, "When the lead catcher picks you, answers for you.") T:choice("Answer", "ChoicePick", {"Hero", "Chicken", "Random"}, save, "Hero = cross alone for the bigger reward. Chicken = the safe answer. Random = either, 50/50.") T = UI.tab("Catcher") T:toggle("Auto chase​​", "AutoChase", save, "Runs at the runner you can reach first. Guards the middle when nobody is crossing.") T:choice("Targeting", "Targeting", {"Intercept", "Nearest"}, save, "Intercept = aims where the runner will be. Nearest = closest runner.") T:toggle("Auto dive tackle​​", "AutoTackle", save, "Dives when a runner is in range in front of you.") T:slider("Dive range", "TackleRange", 4, 15, 0.5, save, "The longest dive is about 7-8 studs plus reach.") T:toggle("Auto melee​​", "AutoMelee", save, "Swings your knife at the closest runner in reach.") T:slider("Melee range", "MeleeRange", 2, 8, 0.25, save, "The swing reaches about 5 studs.") T:slider("Melee cooldown (s)", "MeleeCD", 0.3, 1.5, 0.05, save, "Time between swings.") T:toggle("Auto ability​​", "AbilityCatcher", save, "Uses your catcher ability (Q) at the right moment: traps, balls, pucks and ice aimed at the runner ahead; Leash, Big Dagger, Blade Cyclone, Spring Box up close; War Horn and Rocket Shoes on a runner you're facing.") T:section("Lead catcher") T:toggle("Auto pick runner​​", "AutoPick", save, "When you're the lead catcher, picks who has to answer Chicken or Hero.") T:choice("Pick", "PickMode", {"Random", "Fewest wins"}, save, "Fewest wins = the runner with the fewest wins on the leaderboard.") T = UI.tab("Heat") T:section("Cash") T:toggle("Grab Heat cash on the way​​", "Cash", save, "During Heat crossings, auto cross detours for cash. Gold (500) and piles (150) are worth a longer detour than stacks (50).") T:toggle("Open duffles and vaults​​", "OpenDuffles", save, "Opens the duffle bags and vaults you've earned while you're in the lobby.") T:section("Bounties") T:toggle("Go for bounties first​​", "BountyFirst", save, "As catcher or in a Showdown, prefers players with a bounty on them. ESP shows their bounty.") T:section("Showdown (free-for-all)") T:toggle("Stay inside the ring​​", "SDRing", save, "Walks you back in before the shrinking ring catches you.") T:toggle("Auto fight​​", "SDFight", save, "Chases the closest player (bounties first), dives and swings at anyone in reach. Never follows them out of the ring.") T:label("Auto dash dodge (Runner tab) also dodges dives in a Showdown.") T = UI.tab("Visuals") T:toggle("ESP​​", "ESP", save, "Players and bots in your match or practice.") T:toggle("Chams​​", "Chams", save, "Coloured outline through walls: red catcher, blue runner, gold downed.") T:toggle("Name, role and distance​​", "Tags", save) T:toggle("Safest path​​", "PathESP", save, "Draws the route across that stays furthest from the catchers: green safe, yellow close, red risky. It's the route Auto cross follows.") T:toggle("Catcher direction lines​​", "DirLines", save, "A line from each catcher showing where it's going. White = running, yellow = locked onto a runner, orange = locked onto YOU or winding up a swing, red = swing or dive in progress (that's when hits count).") T:toggle("Danger rings​​", "DangerRing", save, "Red rings show each catcher's dive range. The ring under you turns yellow in range and red when a hit is very likely.") T:toggle("Gem ESP​​", "GemESP", save) T:toggle("Catcher warning​​", "Warn", save, "Big red distance text when a catcher is within 20 studs.") T:toggle("Status panel​​", "HUD", save, "Role, phase, time left and what the hub is doing. Drag it anywhere.") T:toggle("Custom field of view​​", "FOVOn", save) T:slider("Field of view", "FOV", 50, 120, 1, save) T = UI.tab("Extras") T:toggle("Auto map vote​​", "AutoVote", save, "Votes your 1st choice if it's on the ballot, then your 2nd, then 3rd. Otherwise backs the map that's winning.") local MAPS = {"None"} pcall(function() for _, m in ipairs(require(GameF.MapVoteConfig).Maps) do if not m.Hidden then MAPS[#MAPS + 1] = m.Name end end end) T:choice("1st choice", "Fav1", MAPS, save) T:choice("2nd choice", "Fav2", MAPS, save) T:choice("3rd choice", "Fav3", MAPS, save) T:toggle("Claim Journey rewards​​", "Journey", save, "Claims every unlocked Valley Journey reward while you're in the lobby.") T:toggle("Claim like reward​​", "LikeReward", save, "Claims the free reward when it's ready.") T:toggle("Auto redeem codes​​", "AutoCodes", save, "Pulls the current codes from RobloxDen and Beebom every 15 minutes and redeems the ones this account hasn't tried yet.") T:button("Check codes now", function() H.RedeemCodes() end) codeLbl = T:label("Codes: waiting for the first check…") T:toggle("Anti-AFK​​", "AntiAFK", function() save() setAFK(S.AntiAFK) end, "Stops the idle kick, and stops the game marking you AFK (AFK players get skipped for matches).") T:toggle("Notifications​​", "Notify", save) T = UI.tab("Main") local status = T:label("…") T:label("Made by Stizzyyy · always free & keyless.\nFound this behind a key system? It's a stolen copy.") T:label("Not included: speed / movement changes. This game has a movement anti-cheat that warns you and alerts staff.") T:button("Unload", function() H.Unload() end, "Stops everything and removes the menu") setAFK(S.AntiAFK) conn(UIS.InputBegan, function(i, gp) if i.KeyCode == Enum.KeyCode.RightShift then Win.Visible = not Win.Visible elseif i.KeyCode == Enum.KeyCode.F6 and not gp then paused = not paused drive = nil notify("Huss Valley Hub", paused and "Paused every assist (F6 to resume)" or "Assists back on") end end) task.spawn(function() while H.alive do status(string.format("%s · %s · ability: %s\nPhase: %s · run %s\nDoing: %s%s", tostring(la("GameRole")), tostring(la("RunState")), tostring(H.ability and H.ability() or "?"), tostring(sa("Phase")), tostring(sa("RunNumber")), H.why or "idle", paused and "\nPaused (F6)" or "")) task.wait(0.5) end end) function H.Unload() H.alive = false drive = nil setAFK(false) pcall(RunS.UnbindFromRenderStep, RunS, "HVH_FOV") pcall(RunS.UnbindFromRenderStep, RunS, "HVH_Move") for _, c in ipairs(H.conns) do pcall(c.Disconnect, c) end for _, i in ipairs(H.insts) do pcall(i.Destroy, i) end if G.HVH == H then G.HVH = nil end end notify("Huss Valley Hub", "Ready · RightShift menu · F6 pause", C.clay) print("[Huss Valley Hub] by Stizzyyy · always free & keyless · rscripts.net/@Stizzyyy") end HubBody()