-- [[ 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. ]] --[[ Prison Dodgeball Hub · PC RightShift = show/hide menu · F6 = pause every assist Auto catch (turns you to face the ball) / auto dodge, auto ability, player + bot + ball ESP with tracers, ball flight paths, incoming-ball banner, aim warning, match panel, prison release order, auto call for a pass, free break out, silent aim + camera aim + auto throw (through the game's own lock-on), rescue passes to jailed teammates, throw-from-prison escape, staff detector, auto open crates, auto daily / quests / season pass, crosshair, field of view, fullbright, anti-AFK. ]] if game.GameId ~= 10378493761 then return end -- Prison Dodgeball only if not game:IsLoaded() then game.Loaded:Wait() end local G = getgenv() if G.PDH and G.PDH.Unload then pcall(G.PDH.Unload) end local H = {conns = {}, insts = {}, alive = true} G.PDH = 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") local VIM = game:GetService("VirtualInputManager") 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(function(...) pcall(f, ...) end) 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 function loop(dt, f) task.spawn(function() while H.alive do pcall(f) task.wait(dt) end end) end ----------------------------------------------------------------- settings (auto-saved) local S = { AutoCatch = false, AutoDodge = false, Mode = "Catch, else dodge", Miss = 5, FaceBall = true, CatchTiming = 50, AutoAbility = false, AbilityWhen = "Ball coming", BallESP = true, EnemyESP = true, TeamESP = true, Outline = true, AimWarn = true, HUD = true, AutoBreakOut = true, AutoRejoin = true, CallPass = true, Queue = true, BotESP = true, Tracers = false, ESPDist = 250, BallPath = true, Incoming = true, Crosshair = false, CrossSize = 9, CrossColor = "White", FOVOn = false, FOV = 85, Fullbright = false, Aim = false, AimMode = "Always", AimPriority = "Closest to crosshair", AimBots = true, AimVisible = true, AimFOV = 300, ShowFOV = true, CamAim = false, CamSmooth = 70, AutoThrow = false, ThrowDelay = 150, PrisonThrow = false, RescuePass = false, AntiStaff = true, StaffAction = "Just warn", AutoCrate = false, CrateKind = "Ball skins", CrateCount = "1x", CrateReserve = 1000, Daily = true, Quests = true, Pass = true, FPSBoost = false, AntiAFK = true, Notify = true, } local CFG = "PDHub.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 ----------------------------------------------------------------- UI library (glass) · themes are shared by every Stizzyyy hub -- dark glassmorphism window + soft glass cards + liquid glass pills -- C keeps the same keys the hubs already use (clay = primary accent); C.accent2 = secondary accent 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 -- every themed property is registered, so switching theme recolours the whole menu live 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 = "PDH" .. 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 -- dark glass edge: one thin, even, light outline local function rim(p, t) return inst("UIStroke", {Color = WHITE, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Transparency = t or 0.8}, p) end -- liquid glass: clear pill, light gathering at both rounded ends, and a crisp highlight line along the inside top edge 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) -- a soft vertical sheen: the top of the glass catches more light than the bottom 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 -- motion helpers 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 -- thin line that fades out at both ends (the dividers in the dark glass panel) 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 ----------------------------------------------------------------- window (dark glassmorphism) 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) -- smoked glass: a lighter grey at the top fading to near black at the bottom 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) -- soft drop shadow so the panel floats (a sibling behind the window that follows it) 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 = "Prison Dodgeball 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") -- window state: body parts (hidden while minimised), sizes, mode, scale target 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)) -- shrink to fit small windows 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) -- window buttons, like a Mac window: red hides the menu, yellow folds it down to the title bar, green makes it bigger do -- short legend for the three buttons, on the same row as them 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 -- the symbols show while the mouse is over the buttons 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 -- resize around the top edge, so the title bar stays where it is 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 -- open / close motion: the panel eases in from slightly smaller and lower, and eases out the same way -- (hubs just set Win.Visible, so this watches that property) 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 -- our own Visible changes are skipped (signals can arrive late, so count them instead of using a flag) 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 -- floating liquid glass button to bring the menu back on phones (no RightShift there) -- phones/tablets only: a round glass button with a menu icon; tap = show/hide, drag = move it 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) -- it glows in the theme colour while the menu is hidden, so it's easy to spot 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 -- sidebar: "MENU" list straight on the glass, active item marked by an accent bar on the window edge -- it scrolls (clipped above the account card) once a hub has more tabs than fit 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)) -- account card at the bottom, like the profile row in the glass sidebar 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) -- the accent bar sits on the window's left edge (inside the scroll area so it isn't clipped) 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) -- a little room on every side so the cards' outlines are never clipped by the scroll area 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() -- the new page glides up into place and the accent bar grows in 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 ----------------------------------------------------------------- content (soft glassmorphism cards) -- rounded translucent card with a soft tonal gradient, tinted by the ambient theme colour on the left 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) -- the card brightens a touch under the mouse 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 -- grey second line under a control's name; the card grows with the text 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 -- liquid glass switch; when on it fills with the accent and glows 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}) -- the knob stretches a little while it slides, like a drop of liquid 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 -- slim track with a glowing accent fill (like the progress ring in the soft glass widget) 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 -- liquid glass pill that cycles through the options 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 -- full-width liquid glass pill button 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 ----------------------------------------------------------------- notifications (soft glass cards) local Toasts = inst("Frame", {AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 70), Size = UDim2.fromOffset(420, 500), BackgroundTransparency = 1}, Gui) inst("UIListLayout", {Padding = UDim.new(0, 10), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder}, Toasts) local toastN = 0 -- one card for every notification: top centre, newest on top, colours + glass from the chosen preset local function toastCard(title, text, col) 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(0, -20), AutomaticSize = Enum.AutomaticSize.Y, BackgroundColor3 = WHITE, BackgroundTransparency = 1, BorderSizePixel = 0}, holder) corner(f, 18) local st = rim(f, 0.82) inst("UIGradient", {Rotation = 90, Color = ColorSequence.new(C.bg:Lerp(WHITE, 0.14), C.bg)}, f) inst("UIPadding", {PaddingTop = UDim.new(0, 13), PaddingBottom = UDim.new(0, 14), PaddingLeft = UDim.new(0, 44), PaddingRight = UDim.new(0, 18)}, f) -- the padding moves children too, so the dot sits at a negative x to land in the left margin, level with the title local dot = inst("Frame", {Size = UDim2.fromOffset(10, 10), Position = UDim2.fromOffset(-26, 5), BackgroundColor3 = col or C.clay, BorderSizePixel = 0}, f) corner(dot, "pill") inst("UIStroke", {Color = col or C.clay, Thickness = 3, Transparency = 0.6}, dot) local lbl = inst("TextLabel", {Text = "" .. title .. "\n" .. text, RichText = true, FontFace = face(), TextSize = 17, LineHeight = 1.1, TextColor3 = C.text, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left}, f) tween(f, 0.4, {Position = UDim2.new(), BackgroundTransparency = math.clamp(TH.glass / 100, 0, 0.6)}, Enum.EasingStyle.Back) local closed = false local function close() if closed then return end closed = true tween(f, 0.3, {Position = UDim2.fromOffset(0, -20), BackgroundTransparency = 1}, Enum.EasingStyle.Quad, Enum.EasingDirection.In) for _, x in ipairs(f:GetDescendants()) do if x:IsA("TextLabel") then tween(x, 0.25, {TextTransparency = 1}) elseif x:IsA("UIStroke") then tween(x, 0.25, {Transparency = 1}) elseif x:IsA("Frame") then tween(x, 0.25, {BackgroundTransparency = 1}) end end task.delay(0.35, function() if holder.Parent then holder:Destroy() end end) end return lbl, close, st end local function notify(title, text, col) if not S.Notify then return end local _, close = toastCard(title, text, col) task.delay(5, close) end ----------------------------------------------------------------- trackers / panels the hub adds itself -- anything a hub puts in the GUI (stat panels, timers, warnings) gets the same glass, outline, corners and font 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 -- smoked glass, lighter at the top local g = inst("UIGradient", {Rotation = 90}, o) painter(function() g.Color = ColorSequence.new(C.bg:Lerp(WHITE, 0.16), C.bg) end) else -- text panels: a gradient would also tint the text, so these get the flat glass tone 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 ----------------------------------------------------------------- theme tab (always the last tab) 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) -- colour pickers: hue / saturation / brightness sliders plus a hex box 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) -- end of UI library ----------------------------------------------------------------- game data local DM = RS:WaitForChild("DodgeMatch") local Remotes = RS:WaitForChild("DodgeGame"):WaitForChild("Remotes") local Action, Progress, Offer = Remotes:FindFirstChild("Action"), Remotes:FindFirstChild("Progress"), Remotes:FindFirstChild("Offer") local function now() return workspace:GetServerTimeNow() end local function la(k) return LP:GetAttribute(k) end local function json(s) local ok, t = pcall(Http.JSONDecode, Http, s or "") return ok and t or nil end local function myChar() return LP.Character end local function myRoot() local c = LP.Character return c and c:FindFirstChild("HumanoidRootPart") end local function playing() return la("InMatch") == true and DM:GetAttribute("Phase") == "Playing" end local function isOut(c) return not c or c:GetAttribute("DodgeOut") == true end local paused = false -- presses one of your own keybinds (the game stores them as Setting attributes), like a real key press local function press(setting, default) local k = Enum.KeyCode[tostring(la(setting) or default)] or Enum.KeyCode[default] VIM:SendKeyEvent(true, k, false, game) task.wait(0.03 + math.random() * 0.03) VIM:SendKeyEvent(false, k, false, game) end ----------------------------------------------------------------- auto catch / dodge -- the game already works out when a ball will hit you and shows it as a warning badge: -- the badge turns green exactly when a catch would land, and its ring shrinks with the time left local warnGui = LP:WaitForChild("PlayerGui"):WaitForChild("IncomingWarningGui", 30) local function threat() local w = warnGui and warnGui:FindFirstChild("Warning") local badge = w and w:FindFirstChild("Badge") if not (w and badge and w.Visible and badge.BackgroundTransparency < 0.4) then return nil end local scale = w:FindFirstChild("Approach") and w.Approach:FindFirstChild("Scale") local tti = scale and (scale.Scale - 1) / (warnGui:GetAttribute("ApproachGrow") or 0.7) * (warnGui:GetAttribute("Horizon") or 1) or 1 local green = warnGui:GetAttribute("CatchColor") or Color3.fromHex("8cff3a") local c = badge.BackgroundColor3 local canCatch = math.abs(c.R - green.R) + math.abs(c.G - green.G) + math.abs(c.B - green.B) < 0.08 return tti, canCatch end -- the ball in flight that's heading for you (closest one) local function incomingBall() local r, f = myRoot(), workspace:FindFirstChild("DodgeBalls") local best, bd for _, b in ipairs(f and r and f:GetChildren() or {}) do local v = b:IsA("BasePart") and b.AssemblyLinearVelocity local to = v and r.Position - b.Position if v and v.Magnitude > 20 and to.Magnitude > 0.5 and not b:FindFirstChildWhichIsA("Weld") and v.Unit:Dot(to.Unit) > 0.6 and (not bd or to.Magnitude < bd) then best, bd = b, to.Magnitude end end return best end H.why = "idle" local cur -- the ball we're reacting to: its own random timing and miss roll local busy = false conn(RunS.RenderStepped, function() if busy or paused or not playing() or la("InPrison") or isOut(myChar()) then cur = nil return end local tti, canCatch = threat() if not tti then cur = nil return end if not cur then local win = (myChar() and myChar():GetAttribute("CatchWin")) or 0.42 -- timing slider: 0 = catch as early as the window allows, 100 = as late as possible local at = math.clamp(0.8 - S.CatchTiming / 100 * 0.6 + (math.random() - 0.5) * 0.2, 0.1, 0.95) cur = {catchAt = win * at, dodgeAt = 0.16 + math.random() * 0.1, miss = math.random(100) <= S.Miss, done = false} end if cur.done or cur.miss then return end local catchOk = S.AutoCatch and S.Mode ~= "Dodge only" and canCatch local dodgeOk = S.AutoDodge and S.Mode ~= "Catch only" and now() >= (la("DashReadyAt") or 0) and (S.Mode == "Dodge only" or not canCatch or not S.AutoCatch) if catchOk and tti <= cur.catchAt then cur.done, busy = true, true H.why = "catching" task.spawn(function() -- a catch only lands inside the game's catch angle (120°), so turn to the ball first local b, r = S.FaceBall and incomingBall(), myRoot() if b and r then local look = CFrame.lookAt(r.Position, Vector3.new(b.Position.X, r.Position.Y, b.Position.Z)) r.CFrame = look local t0 = os.clock() local c c = RunS.RenderStepped:Connect(function() if os.clock() - t0 > 0.35 or not r.Parent then c:Disconnect() else r.CFrame = CFrame.new(r.Position) * look.Rotation end end) end press("SettingKeyCatch", "F") busy = false end) elseif dodgeOk and tti <= cur.dodgeAt then cur.done, busy = true, true H.why = "dodging" task.spawn(function() press("SettingKeyDodge", "Q") busy = false end) end end) -- ability: when it's ready, or only when a ball is coming at you loop(0.1, function() if not (S.AutoAbility and not paused and playing() and not la("InPrison") and not isOut(myChar())) then return end if now() < (la("AbilityReadyAt") or 0) + 0.3 then return end if S.AbilityWhen == "Ball coming" and not threat() then return end press("SettingKeyAbility", "E") task.wait(1) end) ----------------------------------------------------------------- prison, rejoin, rewards -- free break out: the game gives a free one (or saved tokens); the paid one is never touched local brokeAt loop(0.5, function() if not (S.AutoBreakOut and not paused and Offer and playing() and la("InPrison") == true and DM:GetAttribute("Mode") == nil and not la("BreakOutLock")) then return end local key = la("FlagBreakOutFree") and ((la("BreakOutTokens") or 0) > 0 and "Saved" or "paid") or "Free" local left = (la("PrisonFreeAt") or 0) - now() if key ~= "paid" and left >= 6 and brokeAt ~= la("PrisonFreeAt") then brokeAt = la("PrisonFreeAt") task.wait(0.5 + math.random()) Offer:FireServer("BreakOut") notify("Prison", key == "Saved" and "Used a saved break out" or "Used the free break out") end end) local function chars() -- every player and bot character in the match local t = {} for _, p in ipairs(Players:GetPlayers()) do if p.Character then t[#t + 1] = {c = p.Character, p = p} end end local bots = workspace:FindFirstChild("DodgeBots") for _, m in ipairs(bots and bots:GetChildren() or {}) do if m:IsA("Model") then t[#t + 1] = {c = m, bot = true} end end return t end loop(0.5, function() if not (S.CallPass and not paused and Action and playing() and la("InPrison") == true and not isOut(myChar())) then return end local team = la("Team") for _, e in ipairs(chars()) do if e.c ~= myChar() and e.c:GetAttribute("Team") == team and e.c:GetAttribute("HasBall") and not e.c:GetAttribute("InPrison") then Action:FireServer("CallPass") -- same as your call-pass key; the game allows one every 2.5 s task.wait(3 + math.random()) return end end end) loop(3, function() if S.AutoRejoin and not paused and Action and la("SitOut") == true and la("AfkMode") ~= true then Action:FireServer("JoinMatch") end end) local rewardLbl local lastPassXP function H.Claim() if not Progress then return end local said = {} if S.Daily and la("DailyClaimed") == false then local ok = Progress:InvokeServer("ClaimDaily") said[#said + 1] = ok and "daily claimed" or "daily tried" if ok then notify("Daily reward", "Claimed day " .. tostring(la("DailyDay"))) end end if S.Quests then local q = json(la("QuestsJSON")) or {} for _, list in ipairs({q.daily or {}, q.weekly or {}}) do for _, it in ipairs(list) do if not it.claimed and (tonumber(it.prog) or 0) >= (tonumber(it.goal) or 1) then local ok = Progress:InvokeServer("ClaimQuest", it.id) if ok then said[#said + 1] = "quest " .. tostring(it.text) notify("Quest", "Claimed: " .. tostring(it.text)) end task.wait(0.5) end end end end local pass = json(la("PassJSON")) or {} if S.Pass and pass.xp and pass.xp ~= lastPassXP then lastPassXP = pass.xp Progress:InvokeServer("ClaimPassAll") -- the game's own "claim all": free tier, plus premium only if you own the pass said[#said + 1] = "season pass checked" end if rewardLbl and #said > 0 then rewardLbl("Rewards: " .. table.concat(said, " · ")) end end loop(20, function() if not paused then H.Claim() end end) -- FPS boost = the game's own Potato graphics + no other players' effects local fpsWas local function fpsBoost(on) local want = on and {Potato = true, LiteLighting = true, OthersFX = false} or fpsWas if not want then return end if on and not fpsWas then fpsWas = {Potato = la("SettingPotato") == true, LiteLighting = la("SettingLiteLighting") == true, OthersFX = la("SettingOthersFX") ~= false} end for k, v in pairs(want) do if la("Setting" .. k) ~= v then LP:SetAttribute("Setting" .. k, v) if Action then Action:FireServer("Setting", k, v) end end end if not on then fpsWas = nil 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) ----------------------------------------------------------------- visuals local ESPF = inst("Folder", {Name = "PDH_ESP"}, HUI) H.insts[#H.insts + 1] = ESPF local RED, BLUE, GREEN, GOLD, WHITE, ORANGE, GREY = Color3.fromRGB(255, 74, 90), Color3.fromRGB(60, 141, 255), Color3.fromRGB(110, 235, 140), Color3.fromRGB(245, 200, 70), Color3.fromRGB(235, 235, 235), Color3.fromRGB(255, 150, 50), Color3.fromRGB(150, 150, 150) local esp = {} local function tag(key, adornee, model, col, text, size) local o = esp[key] if not o then o = {} if model then o.hl = inst("Highlight", {FillTransparency = 0.8, OutlineTransparency = 0, DepthMode = Enum.HighlightDepthMode.AlwaysOnTop}, ESPF) end o.bb = inst("BillboardGui", {Size = UDim2.fromOffset(200, 38), StudsOffset = Vector3.new(0, model and 3.4 or 1.6, 0), AlwaysOnTop = true, LightInfluence = 0}, ESPF) o.tx = inst("TextLabel", {Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, Font = Enum.Font.GothamBold, TextSize = size or 13, TextStrokeTransparency = 0.4, RichText = true}, o.bb) esp[key] = o end o.seen = true if o.hl then o.hl.Enabled = S.Outline o.hl.Adornee, o.hl.FillColor, o.hl.OutlineColor = model, col, col end o.bb.Adornee, o.tx.TextColor3, o.tx.Text = adornee, col, text end local Warn = inst("TextLabel", {AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 110), Size = UDim2.fromOffset(460, 34), BackgroundTransparency = 1, Font = Enum.Font.GothamBold, TextSize = 22, TextColor3 = RED, TextStrokeTransparency = 0.3, Text = "", Visible = false}, Gui) local Hud = inst("TextLabel", {Position = UDim2.new(1, -16, 0.5, -60), AnchorPoint = Vector2.new(1, 0), 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) dragify(Hud, Hud) -- who holds a ball: it's welded to their character local function holderOf(ball) for _, w in ipairs(ball:GetChildren()) do if w:IsA("Weld") or w:IsA("WeldConstraint") or w:IsA("Motor6D") then for _, part in ipairs({w.Part0, w.Part1}) do local plr = part and part ~= ball and Players:GetPlayerFromCharacter(part:FindFirstAncestorOfClass("Model")) if plr then return plr end end end end end local function teamCol(c) return c and c:GetAttribute("Team") == "Red" and RED or BLUE end local PURPLE = Color3.fromRGB(190, 120, 255) local function hearts(c) local n, m = tonumber(c:GetAttribute("Lives")) or 0, tonumber(c:GetAttribute("MaxLives")) or 3 return string.rep("♥", math.max(n, 0)) .. string.rep("♡", math.max(m - n, 0)) end loop(0.1, function() for _, o in pairs(esp) do o.seen = false end local r = myRoot() local myTeam = myChar() and myChar():GetAttribute("Team") or la("Team") local function dist(pos) return r and math.floor((pos - r.Position).Magnitude) or 0 end local aimer local tr = {} -- players and the game's AI bots (bots get their own purple look and a BOT tag) for _, e in ipairs(chars()) do local c, p = e.c, e.p local root = c ~= myChar() and c:FindFirstChild("HumanoidRootPart") if root and c:GetAttribute("InMatch") and not isOut(c) and dist(root.Position) <= S.ESPDist then local mate = c:GetAttribute("Team") == myTeam local show = (e.bot and S.BotESP) or (not e.bot and ((mate and S.TeamESP) or (not mate and S.EnemyESP))) local jail = c:GetAttribute("InPrison") or (p and p:GetAttribute("InPrison")) if show then local bits = {} if c:GetAttribute("HasBall") then bits[#bits + 1] = "HAS BALL" end if c:GetAttribute("LastStanding") then bits[#bits + 1] = "LAST STANDING" end if jail then local free = tonumber((p and p:GetAttribute("PrisonFreeAt")) or c:GetAttribute("PrisonFreeAt")) bits[#bits + 1] = free and string.format("PRISON %ds", math.max(0, math.floor(free - now()))) or "PRISON" end if not e.bot then local cd = (tonumber(c:GetAttribute("AbilityReadyAt")) or 0) - now() bits[#bits + 1] = cd > 0 and string.format("ability %ds", math.ceil(cd)) or "ability ready" end local col = jail and GREY or (e.bot and PURPLE) or teamCol(c) local name = e.bot and ("BOT · " .. c.Name .. (mate and " (team)" or "")) or p.DisplayName tag(c, root, c, col, string.format("%s %s\n%s · %d", name, hearts(c), table.concat(bits, " · "), dist(root.Position))) if not mate and not jail then tr[#tr + 1] = {root.Position, col} end end -- an enemy (player or bot) holding a ball and facing you if r and not mate and c:GetAttribute("HasBall") and not jail then local to = r.Position - root.Position local d = to.Magnitude if d < 90 and root.CFrame.LookVector:Dot(to.Unit) > 0.94 and (not aimer or d < aimer[2]) then aimer = {e.bot and ("BOT " .. c.Name) or p.DisplayName, d} end end end end H.overlay = tr -- balls if S.BallESP then local f = workspace:FindFirstChild("DodgeBalls") for _, b in ipairs(f and f:GetChildren() or {}) do if b:IsA("BasePart") then local who = holderOf(b) local speed = b.AssemblyLinearVelocity.Magnitude if who then if who ~= LP then tag(b, b, nil, teamCol(who.Character), string.format("ball · %s", who.DisplayName), 11) end elseif speed > 25 and not b.Anchored then tag(b, b, nil, ORANGE, string.format("BALL IN FLIGHT · %d", dist(b.Position)), 13) else tag(b, b, nil, WHITE, string.format("LOOSE BALL · %d", dist(b.Position)), 13) end end end end for key, o in pairs(esp) do if not o.seen or (typeof(key) == "Instance" and not key.Parent) then if o.hl then o.hl:Destroy() end o.bb:Destroy() esp[key] = nil end end -- incoming ball beats the aim warning: it's the more urgent one local tti = S.Incoming and playing() and not la("InPrison") and threat() if tti then Warn.Visible, Warn.TextColor3 = true, ORANGE Warn.Text = string.format("BALL INCOMING · %.1fs", math.max(tti, 0)) else Warn.Visible, Warn.TextColor3 = S.AimWarn and aimer ~= nil and playing() and not la("InPrison"), RED if Warn.Visible then Warn.Text = string.format("%s IS AIMING AT YOU · %d", aimer[1]:upper(), math.floor(aimer[2])) end end fpsBoost(false) -- FPS boost was removed (Roblox has its own graphics setting); this only puts old settings back end) ----------------------------------------------------------------- screen overlay: tracers, ball paths, crosshair (plain GUI lines, any executor) local Ov = inst("ScreenGui", {Name = "PDH_OV" .. math.random(1e5, 1e6), IgnoreGuiInset = true, ResetOnSpawn = false, DisplayOrder = 40}, HUI) H.insts[#H.insts + 1] = Ov local linePool, lineUsed = {}, 0 local function line(a, b, col, thick) lineUsed += 1 local f = linePool[lineUsed] if not f then f = inst("Frame", {AnchorPoint = Vector2.new(0.5, 0.5), BorderSizePixel = 0}, Ov) linePool[lineUsed] = f end local d = b - a f.Visible, f.BackgroundColor3 = true, col f.Position = UDim2.fromOffset((a.X + b.X) / 2, (a.Y + b.Y) / 2) f.Size = UDim2.fromOffset(d.Magnitude, thick or 1.5) f.Rotation = math.deg(math.atan2(d.Y, d.X)) end local function onScreen(pos) local v, vis = workspace.CurrentCamera:WorldToViewportPoint(pos) return Vector2.new(v.X, v.Y), vis and v.Z > 0 end local CROSS = {White = Color3.new(1, 1, 1), Red = Color3.fromRGB(255, 74, 90), Green = Color3.fromRGB(110, 235, 140), Cyan = Color3.fromRGB(80, 220, 255), Yellow = Color3.fromRGB(245, 200, 70)} H.overlay = {} -- filled by the ESP loop: {pos, col} for tracers conn(RunS.RenderStepped, function() lineUsed = 0 local cam = workspace.CurrentCamera local vp = cam.ViewportSize -- tracers from the bottom of the screen if S.Tracers then for _, t in ipairs(H.overlay) do local p, vis = onScreen(t[1]) if vis then line(Vector2.new(vp.X / 2, vp.Y - 2), p, t[2], 1.2) end end end -- where each ball in flight is heading (next half second), red when it's coming at you if S.BallPath then local f, r = workspace:FindFirstChild("DodgeBalls"), myRoot() for _, b in ipairs(f and f:GetChildren() or {}) do local v = b:IsA("BasePart") and b.AssemblyLinearVelocity if v and v.Magnitude > 25 and not b:FindFirstChildWhichIsA("Weld") then local col = ORANGE if r and (r.Position - b.Position).Magnitude > 1 and v.Unit:Dot((r.Position - b.Position).Unit) > 0.85 then col = RED end local last, lastVis = onScreen(b.Position) for i = 1, 6 do local p, vis = onScreen(b.Position + v * (i * 0.08)) if vis and lastVis then line(last, p, col, 2.5) end last, lastVis = p, vis end end end end -- crosshair if S.Crosshair then local c, n, col = vp / 2, S.CrossSize, CROSS[S.CrossColor] or CROSS.White line(c - Vector2.new(n, 0), c - Vector2.new(3, 0), col, 2) line(c + Vector2.new(3, 0), c + Vector2.new(n, 0), col, 2) line(c - Vector2.new(0, n), c - Vector2.new(0, 3), col, 2) line(c + Vector2.new(0, 3), c + Vector2.new(0, n), col, 2) end if H.fovCircle then H.fovCircle() end for i = lineUsed + 1, #linePool do linePool[i].Visible = false end -- field of view (set after the game's camera each frame; the old value comes back when turned off) if S.FOVOn then H.fovWas = H.fovWas or cam.FieldOfView cam.FieldOfView = S.FOV elseif H.fovWas then cam.FieldOfView = H.fovWas H.fovWas = nil end end) -- fullbright, put back the way it was when turned off local Lighting = game:GetService("Lighting") local litWas loop(1, function() if S.Fullbright then if not litWas then litWas = {Ambient = Lighting.Ambient, OutdoorAmbient = Lighting.OutdoorAmbient, Brightness = Lighting.Brightness, FogEnd = Lighting.FogEnd, GlobalShadows = Lighting.GlobalShadows} end Lighting.Ambient, Lighting.OutdoorAmbient, Lighting.Brightness, Lighting.FogEnd, Lighting.GlobalShadows = Color3.new(1, 1, 1), Color3.new(1, 1, 1), 2, 1e6, false elseif litWas then for k, v in pairs(litWas) do Lighting[k] = v end litWas = nil end end) H.unlit = function() if litWas then for k, v in pairs(litWas) do pcall(function() Lighting[k] = v end) end end end -- prison release order: everyone jailed (both teams, bots too), soonest out first local Queue = 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, Visible = false}, Gui) corner(Queue, 8) stroke(Queue) inst("UIPadding", {PaddingTop = UDim.new(0, 8), PaddingBottom = UDim.new(0, 8), PaddingLeft = UDim.new(0, 10), PaddingRight = UDim.new(0, 12)}, Queue) dragify(Queue, Queue) loop(0.25, function() local list = {} if S.Queue and la("InMatch") then for _, e in ipairs(chars()) do local c = e.c if (c:GetAttribute("InPrison") or (e.p and e.p:GetAttribute("InPrison"))) and not isOut(c) then local free = tonumber((e.p and e.p:GetAttribute("PrisonFreeAt")) or c:GetAttribute("PrisonFreeAt")) list[#list + 1] = {name = (e.bot and "BOT " .. c.Name) or e.p.DisplayName, team = c:GetAttribute("Team"), left = free and free - now() or math.huge, me = c == myChar()} end end table.sort(list, function(a, b) return a.left < b.left end) end Queue.Visible = #list > 0 if #list == 0 then return end local lines = {"Release order"} for i, q in ipairs(list) do local hex = q.team == "Red" and "#ff4a5a" or "#3c8dff" lines[#lines + 1] = string.format("%d. %s%s · %s", i, hex, q.name, q.me and " (you)" or "", q.left == math.huge and "?" or (math.max(0, math.floor(q.left)) .. "s")) end Queue.Text = table.concat(lines, "\n") end) ----------------------------------------------------------------- aim: the game's own lock-on does the throw (it already leads moving targets), -- the hub only decides who that lock points at. No fake throws: you (or auto throw) still use your throw key. local LockV = LP:WaitForChild("LockOnTarget", 10) local rmb = false conn(UIS.InputBegan, function(i) if i.UserInputType == Enum.UserInputType.MouseButton2 then rmb = true end end) conn(UIS.InputEnded, function(i) if i.UserInputType == Enum.UserInputType.MouseButton2 then rmb = false end end) local rayP = RaycastParams.new() rayP.FilterType = Enum.RaycastFilterType.Exclude local function visible(root) local cam = workspace.CurrentCamera local ign = {} for _, e in ipairs(chars()) do ign[#ign + 1] = e.c end local f = workspace:FindFirstChild("DodgeBalls") if f then ign[#ign + 1] = f end -- invisible barriers (the prison rails) don't block a throw from being seen, so look through them for _ = 1, 6 do rayP.FilterDescendantsInstances = ign local hit = workspace:Raycast(cam.CFrame.Position, root.Position - cam.CFrame.Position, rayP) if not hit then return true end if hit.Instance.Transparency < 0.9 then return false end ign[#ign + 1] = hit.Instance end return false end -- same rules the game uses for its lock-on: enemies not in prison, teammates without a ball and at least 8 studs away local function enemyOK(c, team) return c ~= myChar() and c:GetAttribute("InMatch") and not isOut(c) and c:GetAttribute("Team") ~= nil and c:GetAttribute("Team") ~= team and not c:GetAttribute("InPrison") and not c:GetAttribute("Smoked") end local function mateOK(c, team, r) local root = c:FindFirstChild("HumanoidRootPart") return c ~= myChar() and root and r and c:GetAttribute("InMatch") and not isOut(c) and c:GetAttribute("Team") == team and not c:GetAttribute("HasBall") and DM:GetAttribute("Mode") == nil and Vector3.new(root.Position.X - r.Position.X, 0, root.Position.Z - r.Position.Z).Magnitude >= 8 end local function aimCenter() local cam = workspace.CurrentCamera if UIS.MouseBehavior == Enum.MouseBehavior.LockCenter then return cam.ViewportSize / 2 end return UIS:GetMouseLocation() end local function pickTarget() local r = myRoot() if not r then return nil end local team, ctr = la("Team"), aimCenter() local best, bestScore for _, e in ipairs(chars()) do local c = e.c local root = c:FindFirstChild("HumanoidRootPart") if root and (S.AimBots or not e.bot) and enemyOK(c, team) then local sp, on = onScreen(root.Position) local px = (sp - ctr).Magnitude if on and px <= S.AimFOV and (not S.AimVisible or visible(root)) then local score if S.AimPriority == "Closest to me" then score = (root.Position - r.Position).Magnitude elseif S.AimPriority == "Fewest lives" then score = (tonumber(c:GetAttribute("Lives")) or 9) * 1000 + px elseif S.AimPriority == "Holding a ball" then score = (c:GetAttribute("HasBall") and 0 or 1000) + px else score = px end if not bestScore or score < bestScore then best, bestScore = c, score end end end end return best end local function jailedMate() local r, team = myRoot(), la("Team") local best, bd for _, e in ipairs(chars()) do local c = e.c if c:GetAttribute("InPrison") and mateOK(c, team, r) then local d = (c.HumanoidRootPart.Position - r.Position).Magnitude if not bd or d < bd then best, bd = c, d end end end return best end local function throwKey() local k = tostring(la("SettingKeyThrow") or "MouseButton1") if k:find("^MouseButton") then local m = UIS:GetMouseLocation() VIM:SendMouseButtonEvent(m.X, m.Y, k == "MouseButton2" and 1 or 0, true, game, 0) task.wait(0.03 + math.random() * 0.03) VIM:SendMouseButtonEvent(m.X, m.Y, k == "MouseButton2" and 1 or 0, false, game, 0) else press("SettingKeyThrow", "F") end end local aimT, lastThrow, throwing = nil, 0, false conn(RunS.RenderStepped, function() local base = not paused and playing() and not isOut(myChar()) and la("HasBall") == true local jailed = la("InPrison") == true local tgt, isPass if base and S.RescuePass and not jailed then tgt = jailedMate() isPass = tgt ~= nil end if base and not tgt and ((S.Aim and (S.AimMode == "Always" or rmb)) or (jailed and S.PrisonThrow)) then tgt = pickTarget() end if LockV then if tgt then LockV.Value = tgt elseif aimT and LockV.Value == aimT then LockV.Value = nil end end aimT = tgt H.aimT = tgt -- camera aim: turns your view toward the target, smoothed if tgt and not isPass and S.CamAim then local hrp = tgt:FindFirstChild("HumanoidRootPart") local cam = workspace.CurrentCamera if hrp then cam.CFrame = cam.CFrame:Lerp(CFrame.lookAt(cam.CFrame.Position, hrp.Position + Vector3.new(0, 1, 0)), math.clamp(1 - S.CamSmooth / 100, 0.03, 1)) end end -- auto throw: rescue passes always go by themselves; attacks when auto throw (or prison escape) is on local fire = tgt and (isPass or S.AutoThrow or (jailed and S.PrisonThrow)) if fire and not throwing and os.clock() - lastThrow > 0.8 then throwing = true task.spawn(function() task.wait(S.ThrowDelay / 1000 * (0.7 + math.random() * 0.6)) if aimT == tgt and la("HasBall") == true then lastThrow = os.clock() H.why = isPass and "rescue pass" or "throwing" throwKey() end throwing = false end) end end) -- FOV circle, drawn by the overlay each frame H.fovCircle = function() if not (S.Aim and S.ShowFOV) then return end local c, rad, n = aimCenter(), S.AimFOV, 40 local col = aimT and RED or Color3.new(1, 1, 1) local last = c + Vector2.new(rad, 0) for i = 1, n do local a = i / n * math.pi * 2 local p = c + Vector2.new(math.cos(a) * rad, math.sin(a) * rad) line(last, p, col, 1.2) last = p end end ----------------------------------------------------------------- staff detector: anyone above "Member" in the game's group local Http2 = game:GetService("HttpService") local function newServer() local ok, body = pcall(game.HttpGet, game, "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Desc&limit=100") local ok2, t = pcall(Http2.JSONDecode, Http2, ok and body or "") local list = {} for _, sv in ipairs(ok2 and type(t) == "table" and t.data or {}) do if sv.id ~= game.JobId and (sv.playing or 0) < (sv.maxPlayers or 0) - 1 then list[#list + 1] = sv.id end end return #list > 0 and list[math.random(#list)] or nil end local staffSeen = {} local function staffRole(p) if game.CreatorType == Enum.CreatorType.Group then local ok, rank = pcall(p.GetRankInGroup, p, game.CreatorId) if ok and rank and rank > 1 then local ok2, role = pcall(p.GetRoleInGroup, p, game.CreatorId) return ok2 and role or ("rank " .. rank) end elseif p.UserId == game.CreatorId then return "game owner" end end local function checkStaff(p) if p == LP or staffSeen[p] or not S.AntiStaff then return end local role = staffRole(p) if not role then return end staffSeen[p] = true notify("Staff in your server", p.DisplayName .. " · " .. role, RED) H.staff = p.DisplayName .. " (" .. role .. ")" if S.StaffAction == "Pause assists" then paused = true elseif S.StaffAction == "Join a new server" then paused = true local TP = game:GetService("TeleportService") local id = newServer() if not (id and pcall(TP.TeleportToPlaceInstance, TP, game.PlaceId, id, LP)) then pcall(TP.Teleport, TP, game.PlaceId, LP) end elseif S.StaffAction == "Leave the game" then LP:Kick("Left: staff member in the server (" .. p.DisplayName .. ", " .. role .. ")") end end conn(Players.PlayerAdded, function(p) task.wait(1) checkStaff(p) end) loop(10, function() for _, p in ipairs(Players:GetPlayers()) do checkStaff(p) end end) ----------------------------------------------------------------- crates: steps up to the stand in the lobby, uses its prompt (coins only), steps back local CRATES = {["Ball skins"] = "Crate_Skin", Trails = "Crate_Throw", ["Death FX"] = "Crate_Death", Abilities = "Crate_Ability"} local PROMPT = {["1x"] = "OpenPrompt", ["3x"] = "Open3Prompt", ["10x"] = "Open10Prompt"} local CrateR = Remotes:FindFirstChild("Crate") local crateLbl local crateN, crateLast = 0, "none yet" if CrateR then conn(CrateR.OnClientEvent, function(k, t) if k == "Opened" and type(t) == "table" then crateN += 1 crateLast = tostring(t.rarity or "?") if t.rarity == "Legendary" or t.rarity == "Mythic" then notify("Crate", t.rarity .. " pull!", GOLD) end end end) end local function cratePrompt() local lobby = workspace:FindFirstChild("PrisonDodgeballMap") and workspace.PrisonDodgeballMap:FindFirstChild("Lobby") local m = lobby and lobby:FindFirstChild("Crates") and lobby.Crates:FindFirstChild(CRATES[S.CrateKind] or "") return m and m:FindFirstChild(PROMPT[S.CrateCount] or "OpenPrompt", true) end function H.OpenCrate(loud) local pr, r = cratePrompt(), myRoot() if not (pr and r) then if loud then notify("Crate", "Crate not found") end return false end if la("InMatch") or la("Rolling") then if loud then notify("Crate", "Only in the lobby, after the last roll") end return false end local price = tonumber(pr:GetAttribute("Price")) or math.huge if (la("Coins") or 0) - price < (loud and 0 or S.CrateReserve) then if loud then notify("Crate", "Not enough coins") end return false end -- the game only takes the prompt when you stand next to the crate local spot = pr.Parent:IsA("Attachment") and pr.Parent.WorldPosition or pr.Parent.Position local back = r.CFrame local dir = (r.Position - spot) * Vector3.new(1, 0, 1) dir = dir.Magnitude > 0.1 and dir.Unit or Vector3.new(0, 0, 1) r.CFrame = CFrame.lookAt(spot + dir * 5 + Vector3.new(0, 1, 0), spot) task.wait(0.35) local before = crateN fireproximityprompt(pr) local t0 = os.clock() while crateN == before and os.clock() - t0 < 4 do task.wait(0.1) end task.wait(0.2) r.CFrame = back -- the game finishes the roll itself; if it hangs, tell it we're done t0 = os.clock() while la("Rolling") and os.clock() - t0 < 15 do task.wait(0.25) end if la("Rolling") and CrateR then CrateR:FireServer("Done") end return crateN > before end loop(1.5, function() if crateLbl then crateLbl(string.format("Opened this session: %d · last: %s · coins: %s", crateN, crateLast, tostring(la("Coins") or "?"))) end if S.AutoCrate and not paused then H.OpenCrate(false) end end) -- match panel loop(0.5, function() Hud.Visible = S.HUD if not S.HUD then return end local lines = {string.format("Prison Dodgeball Hub%s", paused and " PAUSED (F6)" or "")} if la("InMatch") then local tl = tonumber(DM:GetAttribute("TimeLeft")) or 0 lines[#lines + 1] = string.format("RED %s – %s BLUE · round %s · %d:%02d", tostring(DM:GetAttribute("RedScore") or 0), tostring(DM:GetAttribute("BlueScore") or 0), tostring(DM:GetAttribute("Round") or "?"), tl // 60, tl % 60) lines[#lines + 1] = string.format("Alive: red %s/%s · blue %s/%s", tostring(DM:GetAttribute("RedAlive") or "?"), tostring(DM:GetAttribute("RedTotal") or "?"), tostring(DM:GetAttribute("BlueAlive") or "?"), tostring(DM:GetAttribute("BlueTotal") or "?")) local c = myChar() lines[#lines + 1] = string.format("You (%s): ♥%s · %s outs · %s catches", tostring(la("Team") or "?"), tostring(la("Lives") or "?"), tostring(c and c:GetAttribute("MatchOuts") or la("MatchOuts") or 0), tostring(c and c:GetAttribute("MatchCatches") or la("MatchCatches") or 0)) if la("InPrison") then local left = (la("PrisonFreeAt") or now()) - now() lines[#lines + 1] = string.format("In prison · free in %ds · hit someone to get back in", math.max(0, math.floor(left))) end else lines[#lines + 1] = string.format("Lobby · %s · next match in %ss", tostring(DM:GetAttribute("Phase") or "—"), tostring(DM:GetAttribute("Countdown") or "?")) end local q = json(la("QuestsJSON")) or {} for _, it in ipairs(q.daily or {}) do lines[#lines + 1] = string.format("%s %s %d/%d", it.claimed and "✓" or "·", tostring(it.text):lower(), tonumber(it.prog) or 0, tonumber(it.goal) or 0) end lines[#lines + 1] = "Doing: " .. H.why Hud.Text = table.concat(lines, "\n") end) loop(1, function() if H.why ~= "idle" and not busy then task.wait(1.5) H.why = playing() and "watching" or "idle" end end) ----------------------------------------------------------------- menu local T = UI.tab("Match") T:section("Reactions") T:toggle("Auto catch​​", "AutoCatch", save, "Presses your catch key when a ball is about to hit you. It uses the game's own warning: the badge turns green when a catch will land.") T:toggle("Auto dodge​​", "AutoDodge", save, "Presses your dodge key at the last moment when you can't catch (holding a ball, or catch on cooldown).") T:choice("Mode", "Mode", {"Catch, else dodge", "Catch only", "Dodge only"}, save) T:slider("Miss on purpose (%)", "Miss", 0, 40, 1, save, "Lets this share of balls through untouched, so it doesn't look perfect.") T:toggle("Face the ball when catching​​", "FaceBall", save, "A catch only counts if the ball comes in within the game's 120° catch angle. This turns you toward the ball for a split second as you catch, so balls from the side or behind still land.") T:slider("Catch timing (early → late)", "CatchTiming", 0, 100, 5, save, "Where in the game's catch window to press. Lower = earlier and safer, higher = later and riskier.") T:section("Ability") T:toggle("Auto ability​​", "AutoAbility", save, "Uses your equipped ability (your ability key) as soon as it's off cooldown.") T:choice("Use it", "AbilityWhen", {"Ball coming", "When ready"}, save) T:section("Prison") T:toggle("Auto break out​​", "AutoBreakOut", save, "Uses the game's free break out, or a saved break-out token, when you land in prison. Never the Robux one.") T:toggle("Auto rejoin​​", "AutoRejoin", save, "Joins the next match again if you got sat out.") T:toggle("Auto call for a pass​​", "CallPass", save, "While you're in prison and a teammate holds a ball, calls for the pass for you (same as your call-pass key, every few seconds).") T:toggle("Release order panel​​", "Queue", save, "Everyone in prison, both teams and bots, in the order they get out, with seconds left. Drag it anywhere.") T = UI.tab("Aim") T:section("Aim") T:toggle("Silent aim​​", "Aim", save, "Your throws go to the best enemy inside the circle, using the game's own lock-on (it already leads moving targets). You still throw yourself unless auto throw is on.") T:choice("When", "AimMode", {"Always", "Hold right mouse"}, save) T:choice("Pick", "AimPriority", {"Closest to crosshair", "Closest to me", "Fewest lives", "Holding a ball"}, save, "Which enemy wins when several are in the circle.") T:toggle("Aim at bots too​​", "AimBots", save) T:toggle("Only if visible​​", "AimVisible", save, "Skips enemies behind walls.") T:slider("Circle size (pixels)", "AimFOV", 40, 600, 10, save, "Only enemies inside this circle around your mouse (or screen centre) count.") T:toggle("Show the circle​​", "ShowFOV", save, "Turns red when it has a target.") T:section("Camera") T:toggle("Camera aim​​", "CamAim", save, "Also turns your camera toward the target while you hold a ball.") T:slider("Camera smoothness", "CamSmooth", 0, 95, 5, save, "Higher = slower, more natural turning.") T:section("Throwing") T:toggle("Auto throw​​", "AutoThrow", save, "Throws by itself (your throw key) the moment you hold a ball and have a target.") T:slider("Throw delay (ms)", "ThrowDelay", 0, 600, 10, save, "Wait before an auto throw, a bit random each time.") T:toggle("Rescue passes​​", "RescuePass", save, "Holding a ball and a teammate is in prison: passes it to them by itself (the game leads the pass), so they can throw their way out.") T:toggle("Prison escape​​", "PrisonThrow", save, "In prison with a ball: aims at an enemy and throws by itself, even with auto throw off.") T = UI.tab("Visuals") T:section("ESP") T:toggle("Ball ESP​​", "BallESP", save, "Every ball: who's holding it, loose balls on the floor and balls in flight, with distance.") T:toggle("Enemy ESP​​", "EnemyESP", save, "Enemies with lives left, whether they hold a ball, last standing, prison and ability cooldown.") T:toggle("Teammate ESP​​", "TeamESP", save, "Your team, including who's in prison and how long until they're out.") T:toggle("Bot ESP​​", "BotESP", save, "The game's AI bots, in purple with a BOT tag so you can tell them from real players.") T:toggle("Tracers​​", "Tracers", save, "Lines from the bottom of your screen to every enemy (and enemy bot) still in play.") T:slider("ESP distance", "ESPDist", 50, 600, 10, save, "Nobody further away than this gets a tag.") T:section("Style") T:toggle("Outline through walls​​", "Outline", save) T:section("Warnings") T:toggle("Aim warning​​", "AimWarn", save, "Big warning when an enemy holding a ball is facing you.") T:toggle("Incoming ball banner​​", "Incoming", save, "Shows BALL INCOMING with the seconds left, from the game's own hit timing.") T:toggle("Ball flight path​​", "BallPath", save, "Draws where each thrown ball is heading. Red when it's coming at you.") T:section("Panel") T:toggle("Match panel​​", "HUD", save, "Score, round, time, who's alive, your lives, outs and catches, prison timer and today's quests. Drag it anywhere.") T = UI.tab("Screen") T:section("Crosshair") T:toggle("Crosshair​​", "Crosshair", save, "A crosshair in the middle of your screen.") T:slider("Crosshair size", "CrossSize", 4, 30, 1, save) T:choice("Crosshair colour", "CrossColor", {"White", "Red", "Green", "Cyan", "Yellow"}, save) T:section("Camera") T:toggle("Custom field of view​​", "FOVOn", save, "Wider or narrower view. Turning it off puts the game's own back.") T:slider("Field of view", "FOV", 50, 120, 1, save) T:section("Lighting") T:toggle("Fullbright​​", "Fullbright", save, "Lights up the whole map. Turning it off puts the game's lighting back.") T = UI.tab("Rewards") T:section("Rewards") T:toggle("Auto daily reward​​", "Daily", save) T:toggle("Auto claim quests​​", "Quests", save, "Claims daily and weekly quests the moment they're done.") T:toggle("Auto claim season pass​​", "Pass", save, "The game's own \"claim all\": free tier, plus premium only if you own it.") T:button("Claim now", function() task.spawn(H.Claim) end, "Runs all three right away (they also run every 20 seconds)") rewardLbl = T:label("Rewards: nothing to claim yet") T:section("Crates") T:toggle("Auto open crates​​", "AutoCrate", save, "In the lobby, steps up to the crate, opens it with coins and steps back, again and again while you have more coins than the reserve. Never Robux.") T:choice("Crate", "CrateKind", {"Ball skins", "Trails", "Death FX", "Abilities"}, save, "Ball skins, trails and death FX cost 500 a roll, abilities 1,000.") T:choice("How many", "CrateCount", {"1x", "3x", "10x"}, save, "10x costs the same as 9 rolls (one free).") T:slider("Keep at least (coins)", "CrateReserve", 0, 20000, 250, save, "Auto open stops before your coins would drop below this.") T:button("Open one now", function() task.spawn(H.OpenCrate, true) end, "Opens the selected crate once (needs you in the lobby)") crateLbl = T:label("Opened this session: 0") T = UI.tab("Extras") do -- extras: the same set every Stizzyyy hub has (pass 2) local Pl, HS, TP, RunX, LightX = game:GetService("Players"), game:GetService("HttpService"), game:GetService("TeleportService"), game:GetService("RunService"), game:GetService("Lighting") local XT = T local XF = "StizzyyyExtras_" .. game.GameId .. ".json" local XS = {X_No3D = false} pcall(function() for k, v in pairs(HS:JSONDecode(readfile(XF))) do if XS[k] ~= nil and type(v) == type(XS[k]) then XS[k] = v end end end) for k, v in pairs(XS) do S[k] = v end local function xsave() for k in pairs(XS) do XS[k] = S[k] end pcall(function() writefile(XF, HS:JSONEncode(XS)) end) end local function xalive() return Gui ~= nil and Gui.Parent ~= nil end -- the menu is gone once the hub unloads XT:section("General") XT:toggle("Anti-AFK​​", "AntiAFK", save, "Stops the idle kick (doesn't turn on the game's AFK mode, so you keep playing matches).") XT:toggle("Notifications​​", "Notify", save) XT:section("Performance") XT:toggle("Turn off 3D rendering​​", "X_No3D", xsave, "Black screen and much less GPU, for AFK grinding.") task.spawn(function() local gfx, cap, r3d local function ungfx() if gfx then pcall(function() LightX.GlobalShadows = gfx.shadows end) for d in pairs(gfx.fx) do pcall(function() d.Enabled = true end) end gfx = nil end end while xalive() do if S.X_No3D ~= r3d then r3d = S.X_No3D pcall(RunX.Set3dRenderingEnabled, RunX, not r3d) end task.wait(1) end ungfx() pcall(RunX.Set3dRenderingEnabled, RunX, true) end) XT:section("Server") local function xhop(mode) if mode == "rejoin" then notify("Server", "Rejoining…") pcall(TP.TeleportToPlaceInstance, TP, game.PlaceId, game.JobId, Pl.LocalPlayer) return end -- "very limited spots": 2-5 left, or 1 up to half the server when servers hold 6 or fewer local max = Pl.MaxPlayers local lo = max <= 6 and 1 or 2 local hi = math.min(5, math.max(lo, math.floor(max / 2))) local picks, cursor, reached = {}, nil, false for _ = 1, 3 do local ok, body = pcall(game.HttpGet, game, "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=" .. (mode == "small" and "Asc" or "Desc") .. "&excludeFullGames=true&limit=100" .. (cursor and ("&cursor=" .. cursor) or "")) local ok2, t = pcall(HS.JSONDecode, HS, ok and body or "") if not (ok2 and type(t) == "table") then break end reached = true for _, sv in ipairs(t.data or {}) do local free = (sv.maxPlayers or 0) - (sv.playing or 0) if sv.id ~= game.JobId and free > 0 and (mode ~= "full" or (free >= lo and free <= hi)) then picks[#picks + 1] = sv end end cursor = t.nextPageCursor if #picks > 0 or not cursor then break end end if not reached then notify("Server", "Couldn't look up servers on this executor.") if mode ~= "full" then pcall(TP.Teleport, TP, game.PlaceId, Pl.LocalPlayer) end return end if #picks == 0 then notify("Server", mode == "full" and "No server with very limited spots right now. Try again in a bit." or "No other server found right now.") return end if mode == "small" then table.sort(picks, function(x, y) return (x.playing or 0) < (y.playing or 0) end) end local pick = mode == "small" and picks[1] or picks[math.random(#picks)] notify("Server", mode == "full" and "Joining a server with very limited spots…" or mode == "small" and "Joining a small server…" or "Joining another server…") if not pcall(TP.TeleportToPlaceInstance, TP, game.PlaceId, pick.id, Pl.LocalPlayer) then notify("Server", "Couldn't join that server, try again.") end end XT:button("Rejoin", function() xhop("rejoin") end) if Pl.MaxPlayers > 1 then -- one-player games: every server is just you XT:button("Server hop", function() xhop("any") end) XT:button("Join a small server", function() xhop("small") end) XT:button("Join a full server", function() xhop("full") end, "A server with very limited spots left") end end T:section("Staff") T:toggle("Staff detector​​", "AntiStaff", save, "Warns when anyone above Member in the game's group (Analytics, Admin, Owner) is in your server.") T:choice("When staff is here", "StaffAction", {"Just warn", "Pause assists", "Join a new server", "Leave the game"}, 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:button("Unload", function() H.Unload() end, "Stops everything and removes the menu") 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 notify("Prison Dodgeball Hub", paused and "Paused every assist (F6 to resume)" or "Assists back on") end end) loop(0.5, function() status(string.format("%s · team %s · %s%s%s", la("InMatch") and "in a match" or "in the lobby", tostring(la("Team") or "—"), H.why, paused and "\nPaused (F6)" or "", H.staff and ("\nStaff here: " .. H.staff .. "") or "")) end) function H.Unload() H.alive = false pcall(fpsBoost, false) pcall(H.unlit) pcall(function() local v = LP:FindFirstChild("LockOnTarget") if v and H.aimT and v.Value == H.aimT then v.Value = nil end end) if H.fovWas then pcall(function() workspace.CurrentCamera.FieldOfView = H.fovWas end) end 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.PDH == H then G.PDH = nil end end notify("Prison Dodgeball Hub", "Ready · RightShift menu · F6 pause", C.clay) print("[Prison Dodgeball Hub] by Stizzyyy · always free & keyless · rscripts.net/@Stizzyyy")