--[[ _____ _____ __ __ _____ _____ _ _ _ _ ____ |_ _| _ | | |_ _| | | | | | | | | __ ) | | | | |- -|_| |_| --| | |_| | | | | __ \ |_| |_____|__|__|_____|_____| | _ | |_| | |__) | |_| |_|\___/|____/ TOXIC HUB | made by chucky LocalScript -> StarterPlayer > StarterPlayerScripts Intended for YOUR OWN place / private server (testing & dev tooling). What's new - Aim Lock is now a TOGGLE: press the key once = lock on, press again = release (Hold mode still available in the dropdown) - Lock keeps tracking even when the target leaves your screen (catch-up boost spins the camera toward them, off-screen arrow + tether show where they are) - Priority modes, auto re-target, lock distance, smoothed prediction - Fly rewritten (LinearVelocity + AlignOrientation, smooth accel, fly key, mobile-friendly) - Toxic theme: shimmering accent lines, rising bubbles, pulsing title, lock reticle FX - Tracers, notifications, anti-AFK, cleaner Unload Menu key: RightShift (rebindable). Search "-- HOOK" to plug in your own logic. ]] ---------------------------------------------------------------------- -- Services / setup ---------------------------------------------------------------------- local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UIS = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local Lighting = game:GetService("Lighting") local Workspace = game:GetService("Workspace") local TeleportService = game:GetService("TeleportService") local VirtualUser = game:GetService("VirtualUser") local LP = Players.LocalPlayer local Camera = Workspace.CurrentCamera local PlayerGui = LP:WaitForChild("PlayerGui") -- remove older copies (including the previous menu versions) for _, n in ipairs({ "ToxicHubGui", "ToxicHubOverlay", "MenuGui", "MenuOverlay" }) do local old = PlayerGui:FindFirstChild(n) if old then old:Destroy() end end pcall(function() RunService:UnbindFromRenderStep("MenuAimLock") end) pcall(function() RunService:UnbindFromRenderStep("ToxicAimLock") end) local Cfg = { aimActive = false } -- every setting lives here, keyed by flag local Setters = {} -- checkbox setters by flag (lets keybinds flip a checkbox) local conns, cleanups = {}, {} local function connect(signal, fn) local c = signal:Connect(fn) table.insert(conns, c) return c end ---------------------------------------------------------------------- -- Theme + helpers ---------------------------------------------------------------------- local Theme = { Bg = Color3.fromRGB(8, 12, 8), Box = Color3.fromRGB(13, 20, 13), Tab = Color3.fromRGB(18, 27, 18), Dark = Color3.fromRGB(22, 33, 22), Hover = Color3.fromRGB(38, 58, 34), Border = Color3.fromRGB(34, 70, 28), Text = Color3.fromRGB(215, 255, 205), Dim = Color3.fromRGB(110, 150, 100), Accent = Color3.fromRGB(80, 255, 40), -- toxic green (changeable in Settings) Purple = Color3.fromRGB(170, 60, 255), -- toxic secondary Font = Enum.Font.Code, } local FAST = TweenInfo.new(0.12, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local POP = TweenInfo.new(0.35, Enum.EasingStyle.Back, Enum.EasingDirection.Out) local function tween(o, props, info) TweenService:Create(o, info or FAST, props):Play() end local function new(class, props, children) local o = Instance.new(class) local parent = props.Parent for k, v in pairs(props) do if k ~= "Parent" then o[k] = v end end for _, c in ipairs(children or {}) do c.Parent = o end o.Parent = parent return o end local function stroke(color, thickness) return new("UIStroke", { Color = color or Theme.Border, Thickness = thickness or 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, }) end local function pad(n) return new("UIPadding", { PaddingTop = UDim.new(0, n), PaddingBottom = UDim.new(0, n), PaddingLeft = UDim.new(0, n), PaddingRight = UDim.new(0, n), }) end local function text(props) props.BackgroundTransparency = 1 props.Font = props.Font or Theme.Font props.TextSize = props.TextSize or 12 props.TextColor3 = props.TextColor3 or Theme.Text props.TextXAlignment = props.TextXAlignment or Enum.TextXAlignment.Left return new("TextLabel", props) end -- accent registry (live recolor) + shimmer registry (animated gradients) local accents, shimmers = {}, {} local function accent(obj, prop) table.insert(accents, { obj = obj, prop = prop }) obj[prop] = Theme.Accent end local function setAccent(c) Theme.Accent = c for i = #accents, 1, -1 do local a = accents[i] if a.obj.Parent then a.obj[a.prop] = c else table.remove(accents, i) end end end local function shimmer(frame) local g = new("UIGradient", { Transparency = NumberSequence.new({ NumberSequenceKeypoint.new(0, 0.7), NumberSequenceKeypoint.new(0.5, 0), NumberSequenceKeypoint.new(1, 0.7), }), Parent = frame, }) table.insert(shimmers, g) end local function isMouse(i) return i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch end local function inside(gui, pos) local p, s = gui.AbsolutePosition, gui.AbsoluteSize return pos.X >= p.X and pos.X <= p.X + s.X and pos.Y >= p.Y and pos.Y <= p.Y + s.Y end ---------------------------------------------------------------------- -- GUIs ---------------------------------------------------------------------- local overlay = new("ScreenGui", { Name = "ToxicHubOverlay", ResetOnSpawn = false, IgnoreGuiInset = true, DisplayOrder = 50, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, Parent = PlayerGui, }) local menuGui = new("ScreenGui", { Name = "ToxicHubGui", ResetOnSpawn = false, IgnoreGuiInset = true, DisplayOrder = 100, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, Parent = PlayerGui, }) -- notifications --------------------------------------------------------- local toastHolder = new("Frame", { Position = UDim2.fromOffset(12, 44), Size = UDim2.fromOffset(250, 300), BackgroundTransparency = 1, Parent = overlay, }, { new("UIListLayout", { Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder }) }) local function Notify(title, msg, color) local f = new("Frame", { Size = UDim2.new(1, 0, 0, 24), BackgroundColor3 = Theme.Box, BorderSizePixel = 0, Parent = toastHolder, }, { stroke(color or Theme.Accent) }) new("Frame", { Size = UDim2.new(0, 3, 1, 0), BackgroundColor3 = color or Theme.Accent, BorderSizePixel = 0, Parent = f }) local t = text({ Position = UDim2.fromOffset(10, 0), Size = UDim2.new(1, -14, 1, 0), Text = ("%s %s"):format(title, msg), Parent = f, }) task.delay(2.6, function() if f.Parent then tween(f, { BackgroundTransparency = 1 }) tween(t, { TextTransparency = 1 }) task.wait(0.2) f:Destroy() end end) end -- main window ------------------------------------------------------------- local main = new("Frame", { Name = "Main", AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0.5, 0.5), Size = UDim2.fromOffset(430, 490), BackgroundColor3 = Theme.Bg, BorderSizePixel = 0, Parent = menuGui, }, { stroke(Theme.Border) }) local mainStroke = main:FindFirstChildOfClass("UIStroke") accent(mainStroke, "Color") local mainScale = new("UIScale", { Parent = main }) local baseScale = 1 local function rescale() local vp = Camera.ViewportSize baseScale = math.clamp(math.min(vp.X / 470, vp.Y / 530), 0.5, 1) mainScale.Scale = baseScale end rescale() connect(Camera:GetPropertyChangedSignal("ViewportSize"), rescale) -- Modal button unlocks the mouse in first-person / shiftlock games while open new("TextButton", { Modal = true, Text = "", BackgroundTransparency = 1, Size = UDim2.fromOffset(0, 0), Parent = main }) -- rising toxic bubbles (behind everything) local bubbleLayer = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, ClipsDescendants = true, Parent = main, }) local bubbles = {} for i = 1, 16 do local size = math.random(6, 16) local b = new("Frame", { Size = UDim2.fromOffset(size, size), BackgroundTransparency = 0.78, BorderSizePixel = 0, Parent = bubbleLayer, }, { new("UICorner", { CornerRadius = UDim.new(1, 0) }) }) accent(b, "BackgroundColor3") bubbles[i] = { f = b, x = math.random(), y = math.random(), speed = 0.03 + math.random() * 0.06, phase = math.random() * 6 } end -- title strip ---------------------------------------------------------------- local titleBar = new("Frame", { Size = UDim2.new(1, 0, 0, 26), BackgroundColor3 = Color3.fromRGB(6, 9, 6), BorderSizePixel = 0, Parent = main, }) local titleText = text({ Position = UDim2.fromOffset(10, 0), Size = UDim2.fromOffset(120, 26), Text = "TOXIC HUB", Font = Enum.Font.GothamBlack, TextSize = 15, Parent = titleBar, }) accent(titleText, "TextColor3") local titleStroke = new("UIStroke", { Thickness = 1.2, Transparency = 0.5, Parent = titleText }) accent(titleStroke, "Color") text({ AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -10, 0, 0), Size = UDim2.fromOffset(180, 26), Text = "made by chucky", TextColor3 = Theme.Dim, TextXAlignment = Enum.TextXAlignment.Right, Parent = titleBar, }) do local dragging, startMouse, startPos connect(titleBar.InputBegan, function(i) if isMouse(i) then dragging, startMouse, startPos = true, i.Position, main.Position end end) connect(UIS.InputChanged, function(i) if dragging and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then local d = (i.Position - startMouse) / mainScale.Scale main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + d.X, startPos.Y.Scale, startPos.Y.Offset + d.Y) end end) connect(UIS.InputEnded, function(i) if isMouse(i) then dragging = false end end) end local tabBar = new("Frame", { Position = UDim2.fromOffset(0, 26), Size = UDim2.new(1, 0, 0, 24), BackgroundTransparency = 1, Parent = main, }, { new("UIListLayout", { FillDirection = Enum.FillDirection.Horizontal, SortOrder = Enum.SortOrder.LayoutOrder }) }) local pageHolder = new("Frame", { Position = UDim2.fromOffset(0, 50), Size = UDim2.new(1, 0, 1, -50), BackgroundTransparency = 1, ClipsDescendants = true, Parent = main, }) ---------------------------------------------------------------------- -- Color picker popup (shared) ---------------------------------------------------------------------- local picker = { h = 0, s = 1, v = 1, setter = nil, swatch = nil } picker.frame = new("Frame", { Size = UDim2.fromOffset(168, 128), BackgroundColor3 = Theme.Box, BorderSizePixel = 0, Visible = false, ZIndex = 50, Parent = menuGui, }, { stroke(Theme.Border) }) picker.sv = new("Frame", { Position = UDim2.fromOffset(6, 6), Size = UDim2.fromOffset(130, 116), BorderSizePixel = 0, ZIndex = 51, Parent = picker.frame, }) new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = Color3.new(1, 1, 1), BorderSizePixel = 0, ZIndex = 52, Parent = picker.sv, }, { new("UIGradient", { Transparency = NumberSequence.new(0, 1) }) }) new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = Color3.new(0, 0, 0), BorderSizePixel = 0, ZIndex = 53, Parent = picker.sv, }, { new("UIGradient", { Rotation = 90, Transparency = NumberSequence.new(1, 0) }) }) picker.svCursor = new("Frame", { AnchorPoint = Vector2.new(0.5, 0.5), Size = UDim2.fromOffset(6, 6), BackgroundColor3 = Color3.new(1, 1, 1), ZIndex = 55, Parent = picker.sv, }, { stroke(Color3.new(0, 0, 0)) }) local hueKeys = {} for i = 0, 6 do table.insert(hueKeys, ColorSequenceKeypoint.new(i / 6, Color3.fromHSV(math.min(i / 6, 0.999), 1, 1))) end picker.hue = new("Frame", { Position = UDim2.fromOffset(142, 6), Size = UDim2.fromOffset(20, 116), BackgroundColor3 = Color3.new(1, 1, 1), BorderSizePixel = 0, ZIndex = 51, Parent = picker.frame, }, { new("UIGradient", { Rotation = 90, Color = ColorSequence.new(hueKeys) }) }) picker.hueCursor = new("Frame", { AnchorPoint = Vector2.new(0, 0.5), Size = UDim2.new(1, 0, 0, 2), BackgroundColor3 = Color3.new(1, 1, 1), ZIndex = 55, Parent = picker.hue, }, { stroke(Color3.new(0, 0, 0)) }) local function applyPicker() local c = Color3.fromHSV(picker.h, picker.s, picker.v) picker.sv.BackgroundColor3 = Color3.fromHSV(picker.h, 1, 1) picker.svCursor.Position = UDim2.fromScale(picker.s, 1 - picker.v) picker.hueCursor.Position = UDim2.fromScale(0, picker.h) if picker.setter then picker.setter(c) end end local pickDrag local function pickUpdate(input) if pickDrag == "sv" then picker.s = math.clamp((input.Position.X - picker.sv.AbsolutePosition.X) / picker.sv.AbsoluteSize.X, 0, 1) picker.v = 1 - math.clamp((input.Position.Y - picker.sv.AbsolutePosition.Y) / picker.sv.AbsoluteSize.Y, 0, 1) elseif pickDrag == "hue" then picker.h = math.clamp((input.Position.Y - picker.hue.AbsolutePosition.Y) / picker.hue.AbsoluteSize.Y, 0, 0.999) end applyPicker() end connect(picker.sv.InputBegan, function(i) if isMouse(i) then pickDrag = "sv"; pickUpdate(i) end end) connect(picker.hue.InputBegan, function(i) if isMouse(i) then pickDrag = "hue"; pickUpdate(i) end end) connect(UIS.InputChanged, function(i) if pickDrag and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then pickUpdate(i) end end) connect(UIS.InputEnded, function(i) if isMouse(i) then pickDrag = nil end end) connect(UIS.InputBegan, function(i) if picker.frame.Visible and isMouse(i) then if not inside(picker.frame, i.Position) and not (picker.swatch and inside(picker.swatch, i.Position)) then picker.frame.Visible = false end end end) local function openPicker(swatch, color, setter) picker.setter = nil picker.swatch = swatch picker.h, picker.s, picker.v = color:ToHSV() local vp = Camera.ViewportSize local p = swatch.AbsolutePosition local w = picker.frame.AbsoluteSize.X picker.frame.Position = UDim2.fromOffset( math.clamp(p.X - w + swatch.AbsoluteSize.X, 4, vp.X - w - 4), math.clamp(p.Y + 16, 4, vp.Y - 140) ) picker.frame.Visible = true picker.setter = setter applyPicker() end ---------------------------------------------------------------------- -- Widgets ---------------------------------------------------------------------- local UI = {} local listening -- keybind currently waiting for input local function row(parent, h) return new("Frame", { Size = UDim2.new(1, 0, 0, h), BackgroundTransparency = 1, Parent = parent }) end local function makeSwatch(parent, flag, default, posOffset, callback) Cfg[flag] = default local sw = new("TextButton", { AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -posOffset, 0.5, 0), Size = UDim2.fromOffset(26, 11), BackgroundColor3 = default, Text = "", AutoButtonColor = false, BorderSizePixel = 0, Parent = parent, }, { stroke(Theme.Border) }) connect(sw.MouseButton1Click, function() openPicker(sw, Cfg[flag], function(c) Cfg[flag] = c sw.BackgroundColor3 = c if callback then callback(c) end end) end) return sw end function UI.Checkbox(parent, o) Cfg[o.Flag] = o.Default or false local colors = o.Colors or {} local n = #colors local r = row(parent, 18) local box = new("Frame", { Position = UDim2.fromOffset(2, 3), Size = UDim2.fromOffset(12, 12), BackgroundColor3 = Theme.Dark, BorderSizePixel = 0, Parent = r, }, { stroke(Theme.Border) }) local fill = new("Frame", { AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0.5, 0.5), Size = UDim2.fromOffset(0, 0), BorderSizePixel = 0, Parent = box, }) accent(fill, "BackgroundColor3") text({ Position = UDim2.fromOffset(22, 0), Size = UDim2.new(1, -22 - n * 30, 1, 0), Text = o.Text, Parent = r }) local function render() tween(fill, { Size = Cfg[o.Flag] and UDim2.fromOffset(12, 12) or UDim2.fromOffset(0, 0) }) end render() local function set(v) Cfg[o.Flag] = v render() if o.Callback then o.Callback(v) end end Setters[o.Flag] = set local hit = new("TextButton", { Size = UDim2.new(1, -n * 30, 1, 0), BackgroundTransparency = 1, Text = "", Parent = r, }) connect(hit.MouseButton1Click, function() set(not Cfg[o.Flag]) end) for i, c in ipairs(colors) do makeSwatch(r, c.Flag, c.Default, (i - 1) * 30 + 2, c.Callback) end end function UI.ColorRow(parent, o) local r = row(parent, 18) text({ Position = UDim2.fromOffset(2, 0), Size = UDim2.new(1, -40, 1, 0), Text = o.Text, Parent = r }) makeSwatch(r, o.Flag, o.Default, 2, o.Callback) end function UI.Slider(parent, o) Cfg[o.Flag] = o.Default local suffix = o.Suffix or "" local r = row(parent, 32) text({ Position = UDim2.fromOffset(2, 0), Size = UDim2.new(1, 0, 0, 14), Text = o.Text, Parent = r }) local bar = new("Frame", { Position = UDim2.fromOffset(2, 16), Size = UDim2.new(1, -4, 0, 14), BackgroundColor3 = Theme.Dark, BorderSizePixel = 0, Parent = r, }, { stroke(Theme.Border) }) local fill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = Color3.new(1, 1, 1), BorderSizePixel = 0, Parent = bar, }, { new("UIGradient", { Color = ColorSequence.new(Color3.fromRGB(40, 190, 30), Color3.fromRGB(170, 255, 40)) }), }) local lbl = text({ Size = UDim2.fromScale(1, 1), TextXAlignment = Enum.TextXAlignment.Center, TextStrokeTransparency = 0.5, ZIndex = 2, Parent = bar, }) local function render() local v = Cfg[o.Flag] fill.Size = UDim2.fromScale((v - o.Min) / (o.Max - o.Min), 1) lbl.Text = ("%s%s/%s%s"):format(v, suffix, o.Max, suffix) end render() local dragging = false local function fromInput(i) local a = math.clamp((i.Position.X - bar.AbsolutePosition.X) / bar.AbsoluteSize.X, 0, 1) Cfg[o.Flag] = math.floor(o.Min + (o.Max - o.Min) * a + 0.5) render() if o.Callback then o.Callback(Cfg[o.Flag]) end end local hit = new("TextButton", { Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, Text = "", ZIndex = 3, Parent = bar }) connect(hit.InputBegan, function(i) if isMouse(i) then dragging = true; fromInput(i) end end) connect(UIS.InputChanged, function(i) if dragging and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then fromInput(i) end end) connect(UIS.InputEnded, function(i) if isMouse(i) then dragging = false end end) end function UI.Dropdown(parent, o) Cfg[o.Flag] = o.Default or o.Options[1] local OPT_H = 18 local holder = new("Frame", { Size = UDim2.new(1, 0, 0, 38), BackgroundTransparency = 1, ClipsDescendants = true, Parent = parent, }) text({ Position = UDim2.fromOffset(2, 0), Size = UDim2.new(1, 0, 0, 14), Text = o.Text, Parent = holder }) local head = new("TextButton", { Position = UDim2.fromOffset(2, 16), Size = UDim2.new(1, -4, 0, 20), BackgroundColor3 = Theme.Dark, Text = "", AutoButtonColor = false, BorderSizePixel = 0, Parent = holder, }, { stroke(Theme.Border) }) local sel = text({ Position = UDim2.fromOffset(6, 0), Size = UDim2.new(1, -24, 1, 0), Text = Cfg[o.Flag], Parent = head }) local arrow = text({ AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -4, 0, 0), Size = UDim2.fromOffset(14, 20), Text = "▼", TextSize = 9, TextXAlignment = Enum.TextXAlignment.Center, Parent = head, }) local list = new("Frame", { Position = UDim2.fromOffset(2, 38), Size = UDim2.new(1, -4, 0, #o.Options * OPT_H), BackgroundColor3 = Theme.Dark, BorderSizePixel = 0, Parent = holder, }, { stroke(Theme.Border), new("UIListLayout", { SortOrder = Enum.SortOrder.LayoutOrder }) }) local open = false local function setOpen(v) open = v arrow.Text = v and "▲" or "▼" tween(holder, { Size = UDim2.new(1, 0, 0, v and (40 + #o.Options * OPT_H) or 38) }) end for i, opt in ipairs(o.Options) do local b = new("TextButton", { Size = UDim2.new(1, 0, 0, OPT_H), BackgroundColor3 = Theme.Dark, Text = " " .. opt, Font = Theme.Font, TextSize = 12, TextColor3 = Theme.Text, TextXAlignment = Enum.TextXAlignment.Left, AutoButtonColor = false, BorderSizePixel = 0, LayoutOrder = i, Parent = list, }) connect(b.MouseEnter, function() b.BackgroundColor3 = Theme.Hover end) connect(b.MouseLeave, function() b.BackgroundColor3 = Theme.Dark end) connect(b.MouseButton1Click, function() Cfg[o.Flag] = opt sel.Text = opt setOpen(false) if o.Callback then o.Callback(opt) end end) end connect(head.MouseButton1Click, function() setOpen(not open) end) end function UI.Keybind(parent, o) Cfg[o.Flag] = o.Default local r = row(parent, 20) text({ Position = UDim2.fromOffset(2, 0), Size = UDim2.new(1, -90, 1, 0), Text = o.Text, Parent = r }) local b = new("TextButton", { AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -2, 0.5, 0), Size = UDim2.fromOffset(84, 16), BackgroundColor3 = Theme.Dark, Text = Cfg[o.Flag].Name, Font = Theme.Font, TextSize = 11, TextColor3 = Theme.Text, AutoButtonColor = false, BorderSizePixel = 0, Parent = r, }, { stroke(Theme.Border) }) connect(b.MouseButton1Click, function() b.Text = "..." listening = function(bind) Cfg[o.Flag] = bind b.Text = bind.Name end end) end function UI.Button(parent, label, callback) local b = new("TextButton", { Size = UDim2.new(1, -4, 0, 20), BackgroundColor3 = Theme.Dark, Text = label, Font = Theme.Font, TextSize = 12, TextColor3 = Theme.Text, AutoButtonColor = false, BorderSizePixel = 0, Parent = parent, }, { stroke(Theme.Border) }) connect(b.MouseEnter, function() tween(b, { BackgroundColor3 = Theme.Hover }) end) connect(b.MouseLeave, function() tween(b, { BackgroundColor3 = Theme.Dark }) end) connect(b.MouseButton1Click, callback) end -- group boxes --------------------------------------------------------- local function groupbox(parent, title) local outer = new("Frame", { Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundColor3 = Theme.Box, BackgroundTransparency = 0.08, BorderSizePixel = 0, Parent = parent, }, { stroke(Theme.Border) }) local line = new("Frame", { Size = UDim2.new(1, 0, 0, 2), BorderSizePixel = 0, ZIndex = 2, Parent = outer }) accent(line, "BackgroundColor3") shimmer(line) local inner = new("Frame", { Position = UDim2.fromOffset(0, 2), Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1, Parent = outer, }, { pad(6), new("UIListLayout", { Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder }) }) if title then text({ Size = UDim2.new(1, 0, 0, 14), Text = title, TextXAlignment = Enum.TextXAlignment.Center, Parent = inner }) end return inner end local function tabGroupbox(parent, names) local inner = groupbox(parent, nil) local bar = new("Frame", { Size = UDim2.new(1, 0, 0, 18), BackgroundTransparency = 1, Parent = inner }, { new("UIListLayout", { FillDirection = Enum.FillDirection.Horizontal }) }) local buttons, containers = {}, {} local function select(idx) for i, b in ipairs(buttons) do b.BackgroundColor3 = (i == idx) and Theme.Box or Theme.Tab b.TextColor3 = (i == idx) and Theme.Text or Theme.Dim containers[i].Visible = (i == idx) end end for i, n in ipairs(names) do buttons[i] = new("TextButton", { Size = UDim2.new(1 / #names, 0, 1, 0), Text = n, Font = Theme.Font, TextSize = 12, BackgroundColor3 = Theme.Tab, TextColor3 = Theme.Dim, AutoButtonColor = false, BorderSizePixel = 0, Parent = bar, }, { stroke(Theme.Border) }) containers[i] = new("Frame", { Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1, Parent = inner, }, { new("UIListLayout", { Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder }) }) connect(buttons[i].MouseButton1Click, function() select(i) end) end select(1) return containers end -- tabs ------------------------------------------------------------------ local tabs = {} local TAB_NAMES = { "Legit", "Visuals", "Rage", "Misc", "Settings" } local function selectTab(idx) for i, t in ipairs(tabs) do local on = (i == idx) t.page.Visible = on t.line.Visible = on t.button.BackgroundColor3 = on and Theme.Box or Theme.Tab t.button.TextColor3 = on and Theme.Accent or Theme.Dim end end local function column(page) return new("Frame", { Size = UDim2.new(0.5, -3, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1, Parent = page, }, { new("UIListLayout", { Padding = UDim.new(0, 6), SortOrder = Enum.SortOrder.LayoutOrder }) }) end local function createTab(idx) local button = new("TextButton", { Size = UDim2.new(1 / #TAB_NAMES, 0, 1, 0), LayoutOrder = idx, Text = TAB_NAMES[idx], Font = Theme.Font, TextSize = 13, BackgroundColor3 = Theme.Tab, TextColor3 = Theme.Dim, AutoButtonColor = false, BorderSizePixel = 0, Parent = tabBar, }, { stroke(Theme.Border) }) local line = new("Frame", { Size = UDim2.new(1, 0, 0, 2), BorderSizePixel = 0, Visible = false, Parent = button }) accent(line, "BackgroundColor3") shimmer(line) local page = new("ScrollingFrame", { Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 3, ScrollBarImageColor3 = Theme.Border, AutomaticCanvasSize = Enum.AutomaticSize.Y, CanvasSize = UDim2.new(), Visible = false, Parent = pageHolder, }, { pad(6), new("UIListLayout", { FillDirection = Enum.FillDirection.Horizontal, Padding = UDim.new(0, 6) }) }) local left, right = column(page), column(page) tabs[idx] = { button = button, line = line, page = page } connect(button.MouseButton1Click, function() selectTab(idx) end) return left, right end ---------------------------------------------------------------------- -- Build the menu ---------------------------------------------------------------------- local legitL, legitR = createTab(1) local visL, visR = createTab(2) local rageL, rageR = createTab(3) local miscL, miscR = createTab(4) local setL, setR = createTab(5) -- LEGIT --------------------------------------------------------------- do local g = groupbox(legitL, "Aim Lock") UI.Checkbox(g, { Text = "Enable Aim Lock", Flag = "aimOn", Default = true }) UI.Keybind(g, { Text = "Aim Key", Flag = "aimKey", Default = Enum.UserInputType.MouseButton2 }) UI.Dropdown(g, { Text = "Key Mode", Flag = "aimMode", Options = { "Toggle", "Hold" }, Default = "Toggle" }) UI.Dropdown(g, { Text = "Target Priority", Flag = "aimPriority", Options = { "Closest to Cursor", "Closest Distance", "Lowest Health" }, Default = "Closest to Cursor" }) UI.Dropdown(g, { Text = "Target Part", Flag = "aimPart", Options = { "Head", "HumanoidRootPart", "UpperTorso", "Torso" }, Default = "Head" }) UI.Checkbox(g, { Text = "Team Check", Flag = "aimTeam", Default = true }) UI.Checkbox(g, { Text = "Wall Check (on acquire)", Flag = "aimWall", Default = true }) UI.Checkbox(g, { Text = "Drop Lock Behind Walls", Flag = "aimDropWall", Default = false }) UI.Checkbox(g, { Text = "Auto Re-target", Flag = "aimRetarget", Default = true }) local t = groupbox(legitR, "Aim Tuning") UI.Slider(t, { Text = "Acquire FOV", Flag = "aimFov", Min = 10, Max = 600, Default = 160, Suffix = "px" }) UI.Checkbox(t, { Text = "Show FOV Circle", Flag = "showFov", Default = true, Colors = { { Flag = "fovColor", Default = Color3.fromRGB(80, 255, 40) } } }) UI.Slider(t, { Text = "Smoothness", Flag = "aimSmooth", Min = 1, Max = 30, Default = 4 }) UI.Slider(t, { Text = "Catch-up Strength", Flag = "aimCatch", Min = 0, Max = 10, Default = 6 }) UI.Slider(t, { Text = "Prediction", Flag = "aimPredict", Min = 0, Max = 100, Default = 20, Suffix = "%" }) UI.Slider(t, { Text = "Max Lock Distance", Flag = "aimMaxDist", Min = 50, Max = 3000, Default = 1000 }) local fx = groupbox(legitR, "Lock Effects") UI.Checkbox(fx, { Text = "Toxic Lock FX", Flag = "lockFx", Default = true, Colors = { { Flag = "lockColor", Default = Color3.fromRGB(100, 255, 30) } } }) UI.Checkbox(fx, { Text = "Lock Tether Line", Flag = "lockTether", Default = true }) UI.Checkbox(fx, { Text = "Lock Notifications", Flag = "lockNotify", Default = true }) end -- VISUALS ------------------------------------------------------------- do local esp = tabGroupbox(visL, { "Enemy ESP", "ESP Settings" }) UI.Checkbox(esp[1], { Text = "Nametags", Flag = "espName", Default = true, Colors = { { Flag = "espNameColor", Default = Color3.fromRGB(225, 255, 215) } } }) UI.Checkbox(esp[1], { Text = "Display Distance", Flag = "espDist", Default = true }) UI.Checkbox(esp[1], { Text = "Boxes", Flag = "espBox", Default = true, Colors = { { Flag = "espBoxColor", Default = Color3.fromRGB(80, 255, 40) }, { Flag = "espBoxFill", Default = Color3.fromRGB(60, 200, 30) }, } }) UI.Checkbox(esp[1], { Text = "Healthbars", Flag = "espHealth", Default = true, Colors = { { Flag = "espHealthColor", Default = Color3.fromRGB(120, 255, 60) } } }) UI.Checkbox(esp[1], { Text = "Offscreen Arrows", Flag = "espArrows", Default = true, Colors = { { Flag = "espArrowColor", Default = Color3.fromRGB(170, 60, 255) } } }) UI.Checkbox(esp[1], { Text = "Tracers", Flag = "espTracer", Default = false, Colors = { { Flag = "espTracerColor", Default = Color3.fromRGB(80, 255, 40) } } }) UI.Slider(esp[2], { Text = "Max Distance", Flag = "espMaxDist", Min = 50, Max = 3000, Default = 1500 }) UI.Slider(esp[2], { Text = "Text Size", Flag = "espTextSize", Min = 8, Max = 20, Default = 12, Suffix = "px" }) UI.Checkbox(esp[2], { Text = "Team Check", Flag = "espTeam", Default = true }) local ch = tabGroupbox(visL, { "Local", "Enemy" }) UI.Checkbox(ch[1], { Text = "Visualize LocalPlayer", Flag = "localCham", Colors = { { Flag = "localChamColor", Default = Color3.fromRGB(120, 60, 255) } } }) UI.Slider(ch[1], { Text = "LocalPlayer Transparency", Flag = "localChamT", Min = 0, Max = 100, Default = 50, Suffix = "%" }) UI.Checkbox(ch[2], { Text = "Enemy Chams", Flag = "cham", Colors = { { Flag = "chamFill", Default = Color3.fromRGB(80, 255, 40) }, { Flag = "chamOutline", Default = Color3.fromRGB(255, 255, 255) }, } }) UI.Checkbox(ch[2], { Text = "Through Walls", Flag = "chamWalls", Default = true }) UI.Slider(ch[2], { Text = "Fill Transparency", Flag = "chamFillT", Min = 0, Max = 100, Default = 40, Suffix = "%" }) UI.Slider(ch[2], { Text = "Outline Transparency", Flag = "chamOutT", Min = 0, Max = 100, Default = 0, Suffix = "%" }) local cross = groupbox(visR, "Crosshair") UI.Checkbox(cross, { Text = "Enable Crosshair", Flag = "chOn", Colors = { { Flag = "chColor", Default = Color3.fromRGB(100, 255, 30) } } }) UI.Checkbox(cross, { Text = "Attach to Mouse", Flag = "chAttach" }) UI.Checkbox(cross, { Text = "Show Crosshair Dot", Flag = "chDot" }) UI.Slider(cross, { Text = "Crosshair Size", Flag = "chSize", Min = 1, Max = 100, Default = 7, Suffix = "px" }) UI.Slider(cross, { Text = "Crosshair Spacing", Flag = "chSpacing", Min = 0, Max = 20, Default = 2, Suffix = "px" }) local rw = tabGroupbox(visR, { "Render", "World" }) UI.Checkbox(rw[1], { Text = "Color Correction", Flag = "ccOn", Colors = { { Flag = "ccTint", Default = Color3.fromRGB(205, 255, 190) } } }) UI.Slider(rw[1], { Text = "Brightness", Flag = "ccBright", Min = 0, Max = 100, Default = 0, Suffix = "%" }) UI.Slider(rw[1], { Text = "Contrast", Flag = "ccContrast", Min = 0, Max = 100, Default = 0, Suffix = "%" }) UI.Slider(rw[1], { Text = "Saturation", Flag = "ccSat", Min = 0, Max = 100, Default = 50, Suffix = "%" }) UI.Checkbox(rw[1], { Text = "Bloom", Flag = "bloomOn" }) UI.Slider(rw[1], { Text = "Intensity", Flag = "bloomInt", Min = 0, Max = 40, Default = 12 }) UI.Slider(rw[1], { Text = "Size", Flag = "bloomSize", Min = 0, Max = 56, Default = 24 }) UI.Slider(rw[1], { Text = "Threshold", Flag = "bloomThresh", Min = 0, Max = 40, Default = 8 }) UI.Checkbox(rw[2], { Text = "Fullbright", Flag = "fullbright" }) UI.Checkbox(rw[2], { Text = "Override Time of Day", Flag = "timeOn" }) UI.Slider(rw[2], { Text = "Clock Time", Flag = "clock", Min = 0, Max = 24, Default = 14 }) UI.Checkbox(rw[2], { Text = "Remove Fog", Flag = "noFog" }) end -- RAGE (movement / utility) ----------------------------------------- do local m = groupbox(rageL, "Movement") UI.Checkbox(m, { Text = "Walk Speed", Flag = "speedOn" }) UI.Slider(m, { Text = "Speed Value", Flag = "speed", Min = 16, Max = 200, Default = 40 }) UI.Checkbox(m, { Text = "Jump Power", Flag = "jumpOn" }) UI.Slider(m, { Text = "Jump Value", Flag = "jump", Min = 50, Max = 300, Default = 100 }) UI.Checkbox(m, { Text = "Infinite Jump", Flag = "infJump" }) UI.Checkbox(m, { Text = "Noclip", Flag = "noclip" }) local f = groupbox(rageR, "Fly / Teleport") UI.Checkbox(f, { Text = "Fly (WASD, Space, Ctrl)", Flag = "fly" }) UI.Keybind(f, { Text = "Fly Key (toggle)", Flag = "flyKey", Default = Enum.KeyCode.G }) UI.Slider(f, { Text = "Fly Speed", Flag = "flySpeed", Min = 10, Max = 300, Default = 70 }) UI.Slider(f, { Text = "Fly Smoothing", Flag = "flySmooth", Min = 1, Max = 20, Default = 8 }) UI.Checkbox(f, { Text = "Click TP (hold LeftAlt)", Flag = "clickTp" }) end -- MISC ---------------------------------------------------------------- do local c = groupbox(miscL, "Camera / World") UI.Checkbox(c, { Text = "Override Field of View", Flag = "fovOn" }) UI.Slider(c, { Text = "Field of View", Flag = "fov", Min = 40, Max = 120, Default = 90 }) UI.Slider(c, { Text = "Max Zoom Distance", Flag = "zoom", Min = 10, Max = 500, Default = 128, Callback = function(v) LP.CameraMaxZoomDistance = v end }) UI.Slider(c, { Text = "Gravity", Flag = "gravity", Min = 0, Max = 400, Default = 196, Callback = function(v) Workspace.Gravity = v end }) local u = groupbox(miscR, "Utility") UI.Checkbox(u, { Text = "Anti AFK", Flag = "antiAfk", Default = true }) UI.Button(u, "Rejoin Server", function() TeleportService:Teleport(game.PlaceId, LP) end) UI.Button(u, "Reset Character", function() local h = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if h then h.Health = 0 end end) -- HOOK: add your own buttons / toggles here end -- SETTINGS -------------------------------------------------------------- local Unload do local s = groupbox(setL, "Menu") UI.Keybind(s, { Text = "Menu Key", Flag = "menuKey", Default = Enum.KeyCode.RightShift }) UI.ColorRow(s, { Text = "Menu Accent", Flag = "menuAccent", Default = Theme.Accent, Callback = setAccent }) UI.Checkbox(s, { Text = "Watermark / FPS", Flag = "watermark", Default = true }) UI.Checkbox(s, { Text = "Menu Bubbles", Flag = "bubblesOn", Default = true }) UI.Button(s, "Unload Toxic Hub", function() Unload() end) local about = groupbox(setR, "About") text({ Size = UDim2.new(1, 0, 0, 16), Text = "TOXIC HUB", Font = Enum.Font.GothamBlack, TextSize = 14, TextColor3 = Theme.Accent, Parent = about }) text({ Size = UDim2.new(1, 0, 0, 14), Text = "made by chucky", TextColor3 = Theme.Dim, Parent = about }) end ---------------------------------------------------------------------- -- Feature helpers ---------------------------------------------------------------------- local function sameTeam(plr) return LP.Team ~= nil and plr.Team == LP.Team end local function isDown(bind) if not bind then return false end if bind.EnumType == Enum.KeyCode then return UIS:IsKeyDown(bind) end return UIS:IsMouseButtonPressed(bind) end local function matches(input, bind) if not bind then return false end if bind.EnumType == Enum.KeyCode then return input.KeyCode == bind end return input.UserInputType == bind end local function alive(plr) local char = plr.Character local hum = char and char:FindFirstChildOfClass("Humanoid") local root = char and char:FindFirstChild("HumanoidRootPart") local head = char and char:FindFirstChild("Head") if hum and root and head and hum.Health > 0 then return char, hum, root, head end end -- thin line between two screen points (used for tracers + lock tether) local function setLine(frame, a, b, thickness) local d = b - a frame.Visible = true frame.Size = UDim2.fromOffset(d.Magnitude, thickness) frame.Position = UDim2.fromOffset((a.X + b.X) / 2, (a.Y + b.Y) / 2) frame.Rotation = math.deg(math.atan2(d.Y, d.X)) end -- radar-style edge position for something that is off screen local function edgePosition(worldPos, radiusScale) local vp = Camera.ViewportSize local rel = Camera.CFrame:PointToObjectSpace(worldPos) local d = Vector2.new(rel.X, rel.Z) if d.Magnitude < 0.001 then d = Vector2.new(0, -1) end local u = d.Unit return vp / 2 + u * (math.min(vp.X, vp.Y) * radiusScale), math.deg(math.atan2(u.X, -u.Y)) end local function applyCham(holder, key, char, show, fill, outline, fillT, outT, walls) if show and char then if not holder[key] or holder[key].Parent ~= char then if holder[key] then holder[key]:Destroy() end holder[key] = new("Highlight", { Parent = char }) end local h = holder[key] h.Enabled = true h.FillColor, h.OutlineColor = fill, outline h.FillTransparency, h.OutlineTransparency = fillT, outT h.DepthMode = walls and Enum.HighlightDepthMode.AlwaysOnTop or Enum.HighlightDepthMode.Occluded elseif holder[key] then holder[key].Enabled = false end end ---------------------------------------------------------------------- -- ESP (GUI-based) + chams + tracers ---------------------------------------------------------------------- local espObjs = {} local function makeEsp() local e = {} e.box = new("Frame", { BackgroundTransparency = 1, Visible = false, Parent = overlay }) e.stroke = new("UIStroke", { Thickness = 1.5, Parent = e.box }) e.fill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundTransparency = 0.85, BorderSizePixel = 0, Parent = e.box }) e.nameL = text({ AnchorPoint = Vector2.new(0.5, 1), Size = UDim2.fromOffset(160, 14), TextXAlignment = Enum.TextXAlignment.Center, TextStrokeTransparency = 0.4, Visible = false, Parent = overlay }) e.distL = text({ AnchorPoint = Vector2.new(0.5, 0), Size = UDim2.fromOffset(160, 14), TextXAlignment = Enum.TextXAlignment.Center, TextStrokeTransparency = 0.4, Visible = false, Parent = overlay }) e.hpBack = new("Frame", { Size = UDim2.fromOffset(3, 10), BackgroundColor3 = Color3.new(0, 0, 0), BorderSizePixel = 0, Visible = false, Parent = overlay }) e.hpFill = new("Frame", { AnchorPoint = Vector2.new(0, 1), Position = UDim2.fromScale(0, 1), Size = UDim2.fromScale(1, 1), BorderSizePixel = 0, Parent = e.hpBack }) e.arrow = text({ AnchorPoint = Vector2.new(0.5, 0.5), Size = UDim2.fromOffset(24, 24), Text = "▲", TextSize = 22, TextXAlignment = Enum.TextXAlignment.Center, Visible = false, Parent = overlay }) e.tracer = new("Frame", { AnchorPoint = Vector2.new(0.5, 0.5), BorderSizePixel = 0, Visible = false, Parent = overlay }) return e end local function hideEsp(e) e.box.Visible, e.nameL.Visible, e.distL.Visible = false, false, false e.hpBack.Visible, e.arrow.Visible, e.tracer.Visible = false, false, false end local function destroyEsp(plr) local e = espObjs[plr] if not e then return end for _, k in ipairs({ "box", "nameL", "distL", "hpBack", "arrow", "tracer", "cham" }) do if e[k] then e[k]:Destroy() end end espObjs[plr] = nil end connect(Players.PlayerRemoving, destroyEsp) local localHolder = {} local function updateEsp() local vp = Camera.ViewportSize local camPos = Camera.CFrame.Position local tracerFrom = Vector2.new(vp.X / 2, vp.Y) for _, plr in ipairs(Players:GetPlayers()) do if plr ~= LP then local e = espObjs[plr] if not e then e = makeEsp() espObjs[plr] = e end hideEsp(e) local char, hum, root, head = alive(plr) local enemy = char and not (Cfg.espTeam and sameTeam(plr)) applyCham(e, "cham", char, enemy and Cfg.cham, Cfg.chamFill, Cfg.chamOutline, Cfg.chamFillT / 100, Cfg.chamOutT / 100, Cfg.chamWalls) if enemy then local dist = (root.Position - camPos).Magnitude if dist <= Cfg.espMaxDist then local rootPos, on = Camera:WorldToViewportPoint(root.Position) if on then local topP = Camera:WorldToViewportPoint(head.Position + Vector3.new(0, head.Size.Y / 2 + 0.15, 0)) local botP = Camera:WorldToViewportPoint(root.Position - Vector3.new(0, 3, 0)) local h = math.abs(botP.Y - topP.Y) local w = h * 0.55 local cx, x0, y0 = rootPos.X, rootPos.X - w / 2, topP.Y if Cfg.espBox then e.box.Visible = true e.box.Position, e.box.Size = UDim2.fromOffset(x0, y0), UDim2.fromOffset(w, h) e.stroke.Color = Cfg.espBoxColor e.fill.BackgroundColor3 = Cfg.espBoxFill end if Cfg.espName then e.nameL.Visible = true e.nameL.Text = plr.DisplayName e.nameL.TextColor3 = Cfg.espNameColor e.nameL.TextSize = Cfg.espTextSize e.nameL.Position = UDim2.fromOffset(cx, y0 - 2) end if Cfg.espDist then e.distL.Visible = true e.distL.Text = ("[%d]"):format(dist) e.distL.TextColor3 = Cfg.espNameColor e.distL.TextSize = Cfg.espTextSize e.distL.Position = UDim2.fromOffset(cx, botP.Y + 2) end if Cfg.espHealth then local frac = math.clamp(hum.Health / math.max(hum.MaxHealth, 1), 0, 1) e.hpBack.Visible = true e.hpBack.Position = UDim2.fromOffset(x0 - 6, y0) e.hpBack.Size = UDim2.fromOffset(3, h) e.hpFill.Size = UDim2.fromScale(1, frac) e.hpFill.BackgroundColor3 = Color3.new(1, 0.15, 0.15):Lerp(Cfg.espHealthColor, frac) end if Cfg.espTracer then e.tracer.BackgroundColor3 = Cfg.espTracerColor setLine(e.tracer, tracerFrom, Vector2.new(cx, botP.Y), 1) end elseif Cfg.espArrows then local pos, rot = edgePosition(root.Position, 0.4) e.arrow.Visible = true e.arrow.Position = UDim2.fromOffset(pos.X, pos.Y) e.arrow.Rotation = rot e.arrow.TextColor3 = Cfg.espArrowColor end end end end end -- local player visualization local lchar = LP.Character applyCham(localHolder, "cham", lchar, Cfg.localCham, Cfg.localChamColor, Cfg.localChamColor, Cfg.localChamT / 100, 0, false) end ---------------------------------------------------------------------- -- HUD: FOV circle, crosshair, watermark, lock FX objects ---------------------------------------------------------------------- local lockFlash = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, BorderSizePixel = 0, Parent = overlay, }) local fovCircle = new("Frame", { AnchorPoint = Vector2.new(0.5, 0.5), BackgroundTransparency = 1, Visible = false, Parent = overlay, }, { new("UICorner", { CornerRadius = UDim.new(1, 0) }), new("UIStroke", { Thickness = 1 }) }) local function line(anchor) return new("Frame", { AnchorPoint = anchor, BorderSizePixel = 0, Visible = false, Parent = overlay }) end local cross = { left = line(Vector2.new(1, 0.5)), right = line(Vector2.new(0, 0.5)), up = line(Vector2.new(0.5, 1)), down = line(Vector2.new(0.5, 0)), dot = line(Vector2.new(0.5, 0.5)), } -- lock reticle: two counter-spinning squares + tether + label + offscreen arrow local lockRing = new("Frame", { AnchorPoint = Vector2.new(0.5, 0.5), Size = UDim2.fromOffset(46, 46), BackgroundTransparency = 1, Visible = false, Parent = overlay, }, { new("UIStroke", { Thickness = 2 }) }) local lockRing2 = new("Frame", { AnchorPoint = Vector2.new(0.5, 0.5), Size = UDim2.fromOffset(30, 30), BackgroundTransparency = 1, Visible = false, Parent = overlay, }, { new("UIStroke", { Thickness = 1.5, Color = Theme.Purple }) }) local lockTether = new("Frame", { AnchorPoint = Vector2.new(0.5, 0.5), BorderSizePixel = 0, BackgroundTransparency = 0.45, Visible = false, Parent = overlay }) local lockLabel = text({ AnchorPoint = Vector2.new(0.5, 0), Size = UDim2.fromOffset(220, 14), TextXAlignment = Enum.TextXAlignment.Center, TextStrokeTransparency = 0.3, Font = Theme.Font, TextSize = 12, Visible = false, Parent = overlay, }) local lockArrow = text({ AnchorPoint = Vector2.new(0.5, 0.5), Size = UDim2.fromOffset(34, 34), Text = "▲", TextSize = 32, TextXAlignment = Enum.TextXAlignment.Center, TextStrokeTransparency = 0.3, Visible = false, Parent = overlay, }) local lockHL = new("Highlight", { Enabled = false, DepthMode = Enum.HighlightDepthMode.AlwaysOnTop, OutlineColor = Color3.new(1, 1, 1), Parent = Workspace, }) table.insert(cleanups, function() lockHL:Destroy() end) local watermark = new("Frame", { AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -10, 0, 10), Size = UDim2.fromOffset(250, 22), BackgroundColor3 = Theme.Box, BorderSizePixel = 0, Parent = overlay, }, { stroke(Theme.Border) }) local wmLine = new("Frame", { Size = UDim2.new(1, 0, 0, 2), BorderSizePixel = 0, Parent = watermark }) accent(wmLine, "BackgroundColor3") shimmer(wmLine) local wmText = text({ Position = UDim2.fromOffset(6, 2), Size = UDim2.new(1, -12, 1, -2), TextXAlignment = Enum.TextXAlignment.Center, Parent = watermark }) ---------------------------------------------------------------------- -- AIM LOCK (toggle / hold, persistent tracking) ---------------------------------------------------------------------- local rayParams = RaycastParams.new() rayParams.FilterType = Enum.RaycastFilterType.Exclude rayParams.IgnoreWater = true local lockedPlayer local lockVel = Vector3.zero local lastAcquire = 0 local function targetPart(char) return char:FindFirstChild(Cfg.aimPart) or char:FindFirstChild("Head") or char:FindFirstChild("HumanoidRootPart") end local function isVisible(part) local origin = Camera.CFrame.Position local res = Workspace:Raycast(origin, part.Position - origin, rayParams) return res == nil or res.Instance:IsDescendantOf(part.Parent) end local function setLock(plr) lockedPlayer = plr local char = plr.Character local part = char and targetPart(char) lockVel = part and part.AssemblyLinearVelocity or Vector3.zero if Cfg.lockFx then lockFlash.BackgroundColor3 = Cfg.lockColor lockFlash.BackgroundTransparency = 0.82 tween(lockFlash, { BackgroundTransparency = 1 }, TweenInfo.new(0.45)) end if Cfg.lockNotify then Notify("TOXIC LOCK", "locked » " .. plr.DisplayName, Cfg.lockColor) end end -- pick the best visible enemy inside the acquire FOV local function acquire() rayParams.FilterDescendantsInstances = { LP.Character } local mouse = UIS:GetMouseLocation() local camPos = Camera.CFrame.Position local bestPlr, bestScore for _, plr in ipairs(Players:GetPlayers()) do if plr ~= LP then local char, hum = alive(plr) if char and not (Cfg.aimTeam and sameTeam(plr)) then local part = targetPart(char) if part then local worldDist = (part.Position - camPos).Magnitude if worldDist <= Cfg.aimMaxDist then local sp, on = Camera:WorldToViewportPoint(part.Position) local screenDist = (Vector2.new(sp.X, sp.Y) - mouse).Magnitude if on and screenDist <= Cfg.aimFov and (not Cfg.aimWall or isVisible(part)) then local score = screenDist if Cfg.aimPriority == "Closest Distance" then score = worldDist elseif Cfg.aimPriority == "Lowest Health" then score = hum.Health end if not bestScore or score < bestScore then bestScore, bestPlr = score, plr end end end end end end end return bestPlr end local function lockValid(plr) local char = alive(plr) if not char then return end if Cfg.aimTeam and sameTeam(plr) then return end local part = targetPart(char) if not part then return end if (part.Position - Camera.CFrame.Position).Magnitude > Cfg.aimMaxDist * 1.25 then return end if Cfg.aimDropWall and not isVisible(part) then return end return part end local function setAim(on, silent) if on == Cfg.aimActive then return end Cfg.aimActive = on if on then local plr = acquire() if plr then setLock(plr) elseif Cfg.aimRetarget then if not silent and Cfg.lockNotify then Notify("TOXIC LOCK", "armed - searching...", Cfg.lockColor) end else Cfg.aimActive = false if not silent and Cfg.lockNotify then Notify("TOXIC LOCK", "no target in FOV", Theme.Purple) end end else lockedPlayer = nil if not silent and Cfg.lockNotify then Notify("TOXIC LOCK", "released", Theme.Dim) end end end RunService:BindToRenderStep("ToxicAimLock", Enum.RenderPriority.Camera.Value + 1, function(dt) if Cfg.aimMode == "Hold" then local down = Cfg.aimOn and isDown(Cfg.aimKey) if down ~= Cfg.aimActive then setAim(down, true) end end if Cfg.aimActive and not Cfg.aimOn then setAim(false) end if not Cfg.aimActive then return end rayParams.FilterDescendantsInstances = { LP.Character } -- validate / re-acquire (the lock does NOT care whether the target is on screen) local part = lockedPlayer and lockValid(lockedPlayer) if not part then if lockedPlayer then lockedPlayer = nil if Cfg.lockNotify then Notify("TOXIC LOCK", "target lost", Theme.Purple) end end if Cfg.aimRetarget then if os.clock() - lastAcquire > 0.1 then lastAcquire = os.clock() local plr = acquire() if plr then setLock(plr) end end elseif Cfg.aimMode == "Toggle" then setAim(false, true) end return end -- smoothed prediction lockVel = lockVel:Lerp(part.AssemblyLinearVelocity, math.clamp(dt * 10, 0, 1)) local aimPos = part.Position + lockVel * (Cfg.aimPredict / 100) * 0.25 -- aim: strength scales with angular error, so a target who runs off screen is caught up to hard local camCF = Camera.CFrame local toTarget = aimPos - camCF.Position if toTarget.Magnitude < 0.01 then return end local angle = math.deg(math.acos(math.clamp(camCF.LookVector:Dot(toTarget.Unit), -1, 1))) local base = math.clamp(dt * 60 / math.max(Cfg.aimSmooth, 1), 0, 1) local alpha = math.clamp(base * (1 + angle * Cfg.aimCatch / 20), 0, 1) Camera.CFrame = camCF:Lerp(CFrame.lookAt(camCF.Position, aimPos), alpha) -- HOOK: fire your own "target locked" logic here (lockedPlayer / part are valid) end) table.insert(cleanups, function() RunService:UnbindFromRenderStep("ToxicAimLock") end) local function updateLockFx(t) local char = Cfg.aimActive and Cfg.lockFx and lockedPlayer and lockedPlayer.Character local part = char and targetPart(char) if not part then lockRing.Visible, lockRing2.Visible, lockTether.Visible = false, false, false lockLabel.Visible, lockArrow.Visible, lockHL.Enabled = false, false, false return end local col = Cfg.lockColor local pulse = 0.5 + 0.5 * math.sin(t * 6) lockHL.Adornee = char lockHL.Enabled = true lockHL.FillColor = col lockHL.FillTransparency = 0.5 + 0.3 * pulse lockHL.OutlineTransparency = 0.1 local sp, onScreen = Camera:WorldToViewportPoint(part.Position) local pos, rot if onScreen then pos = Vector2.new(sp.X, sp.Y) else pos, rot = edgePosition(part.Position, 0.36) end lockRing.Visible, lockRing2.Visible = onScreen, onScreen lockArrow.Visible = not onScreen if onScreen then lockRing.Position, lockRing2.Position = UDim2.fromOffset(pos.X, pos.Y), UDim2.fromOffset(pos.X, pos.Y) lockRing.Rotation, lockRing2.Rotation = t * 140, -t * 200 local s = 46 + 8 * pulse lockRing.Size = UDim2.fromOffset(s, s) lockRing.UIStroke.Color = col else lockArrow.Position = UDim2.fromOffset(pos.X, pos.Y) lockArrow.Rotation = rot lockArrow.TextColor3 = col end if Cfg.lockTether then lockTether.BackgroundColor3 = col setLine(lockTether, UIS:GetMouseLocation(), pos, 1.5) else lockTether.Visible = false end local dist = (part.Position - Camera.CFrame.Position).Magnitude lockLabel.Visible = true lockLabel.Text = ("LOCKED » %s [%d]"):format(lockedPlayer.DisplayName, dist) lockLabel.TextColor3 = col lockLabel.Position = UDim2.fromOffset(pos.X, pos.Y + (onScreen and 30 or 24)) end ---------------------------------------------------------------------- -- Per-frame HUD + animated menu effects ---------------------------------------------------------------------- local frames, lastT = 0, os.clock() local function updateHud(t, dt) local vp = Camera.ViewportSize local mouse = UIS:GetMouseLocation() fovCircle.Visible = Cfg.aimOn and Cfg.showFov if fovCircle.Visible then fovCircle.Position = UDim2.fromOffset(mouse.X, mouse.Y) fovCircle.Size = UDim2.fromOffset(Cfg.aimFov * 2, Cfg.aimFov * 2) fovCircle.UIStroke.Color = Cfg.fovColor end local on = Cfg.chOn for _, f in pairs(cross) do f.Visible = on f.BackgroundColor3 = Cfg.chColor end cross.dot.Visible = on and Cfg.chDot if on then local p = Cfg.chAttach and mouse or (vp / 2) local len, sp = Cfg.chSize, Cfg.chSpacing cross.left.Position, cross.left.Size = UDim2.fromOffset(p.X - sp, p.Y), UDim2.fromOffset(len, 2) cross.right.Position, cross.right.Size = UDim2.fromOffset(p.X + sp, p.Y), UDim2.fromOffset(len, 2) cross.up.Position, cross.up.Size = UDim2.fromOffset(p.X, p.Y - sp), UDim2.fromOffset(2, len) cross.down.Position, cross.down.Size = UDim2.fromOffset(p.X, p.Y + sp), UDim2.fromOffset(2, len) cross.dot.Position, cross.dot.Size = UDim2.fromOffset(p.X, p.Y), UDim2.fromOffset(3, 3) end frames += 1 local now = os.clock() if now - lastT >= 0.5 then local status = "off" if Cfg.aimActive then status = lockedPlayer and "locked" or "armed" end wmText.Text = ("TOXIC HUB | %d fps | aim: %s"):format(math.floor(frames / (now - lastT) + 0.5), status) frames, lastT = 0, now end watermark.Visible = Cfg.watermark -- animated menu effects (only while the menu is open) if main.Visible then for i = #shimmers, 1, -1 do local g = shimmers[i] if g.Parent then g.Offset = Vector2.new(((t * 0.6) % 2) - 1, 0) else table.remove(shimmers, i) end end titleStroke.Transparency = 0.35 + 0.3 * math.sin(t * 3) bubbleLayer.Visible = Cfg.bubblesOn if Cfg.bubblesOn then for _, b in ipairs(bubbles) do b.y -= b.speed * dt if b.y < -0.05 then b.y, b.x = 1.05, math.random() end b.f.Position = UDim2.fromScale(b.x + 0.015 * math.sin(t * 1.5 + b.phase), b.y) end end end end connect(RunService.RenderStepped, function(dt) local t = os.clock() updateEsp() updateLockFx(t) updateHud(t, dt) end) ---------------------------------------------------------------------- -- World / render effects + movement ---------------------------------------------------------------------- local cc = new("ColorCorrectionEffect", { Name = "ToxicCC", Enabled = false, Parent = Lighting }) local bloom = new("BloomEffect", { Name = "ToxicBloom", Enabled = false, Parent = Lighting }) table.insert(cleanups, function() cc:Destroy() bloom:Destroy() end) local savedLight, savedTime, savedFog local speedApplied, jumpApplied = false, false local noclipCache = {} -- fly --------------------------------------------------------------------- local fly = { att = nil, lv = nil, ao = nil, vel = Vector3.zero } local function stopFly() for _, k in ipairs({ "lv", "ao", "att" }) do if fly[k] then fly[k]:Destroy() fly[k] = nil end end fly.vel = Vector3.zero local hum = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if hum then hum.PlatformStand = false hum:ChangeState(Enum.HumanoidStateType.GettingUp) end end local function startFly(root) stopFly() fly.att = new("Attachment", { Name = "ToxicFlyAttachment", Parent = root }) fly.lv = new("LinearVelocity", { Attachment0 = fly.att, MaxForce = math.huge, VelocityConstraintMode = Enum.VelocityConstraintMode.Vector, RelativeTo = Enum.ActuatorRelativeTo.World, VectorVelocity = Vector3.zero, Parent = root, }) fly.ao = new("AlignOrientation", { Attachment0 = fly.att, Mode = Enum.OrientationAlignmentMode.OneAttachment, MaxTorque = math.huge, Responsiveness = 40, CFrame = root.CFrame, Parent = root, }) end local function updateFly(hum, root, dt) if Cfg.fly and hum and root then if not fly.att or fly.att.Parent ~= root then startFly(root) end hum.PlatformStand = true local cf = Camera.CFrame local dir = Vector3.zero if UIS:IsKeyDown(Enum.KeyCode.W) then dir += cf.LookVector end if UIS:IsKeyDown(Enum.KeyCode.S) then dir -= cf.LookVector end if UIS:IsKeyDown(Enum.KeyCode.D) then dir += cf.RightVector end if UIS:IsKeyDown(Enum.KeyCode.A) then dir -= cf.RightVector end if UIS:IsKeyDown(Enum.KeyCode.Space) or UIS:IsKeyDown(Enum.KeyCode.E) then dir += Vector3.yAxis end if UIS:IsKeyDown(Enum.KeyCode.LeftControl) or UIS:IsKeyDown(Enum.KeyCode.Q) then dir -= Vector3.yAxis end if dir.Magnitude == 0 and hum.MoveDirection.Magnitude > 0 then dir = hum.MoveDirection -- touch / gamepad end local target = dir.Magnitude > 0 and dir.Unit * Cfg.flySpeed or Vector3.zero fly.vel = fly.vel:Lerp(target, math.clamp(dt * Cfg.flySmooth, 0, 1)) fly.lv.VectorVelocity = fly.vel -- stay upright, face where the camera faces local look = Vector3.new(cf.LookVector.X, 0, cf.LookVector.Z) if look.Magnitude > 0.01 then fly.ao.CFrame = CFrame.lookAt(root.Position, root.Position + look) end elseif fly.att then stopFly() end end table.insert(cleanups, stopFly) connect(RunService.Heartbeat, function(dt) -- render effects cc.Enabled = Cfg.ccOn cc.Brightness = Cfg.ccBright / 200 cc.Contrast = Cfg.ccContrast / 100 cc.Saturation = (Cfg.ccSat - 50) / 50 cc.TintColor = Cfg.ccTint bloom.Enabled = Cfg.bloomOn bloom.Intensity = Cfg.bloomInt / 10 bloom.Size = Cfg.bloomSize bloom.Threshold = Cfg.bloomThresh / 10 -- fullbright if Cfg.fullbright then savedLight = savedLight or { Brightness = Lighting.Brightness, Ambient = Lighting.Ambient, OutdoorAmbient = Lighting.OutdoorAmbient } Lighting.Brightness = 2 Lighting.Ambient = Color3.new(1, 1, 1) Lighting.OutdoorAmbient = Color3.new(1, 1, 1) elseif savedLight then for k, v in pairs(savedLight) do Lighting[k] = v end savedLight = nil end -- time of day if Cfg.timeOn then savedTime = savedTime or Lighting.ClockTime Lighting.ClockTime = Cfg.clock elseif savedTime then Lighting.ClockTime = savedTime savedTime = nil end -- fog if Cfg.noFog then savedFog = savedFog or Lighting.FogEnd Lighting.FogEnd = 1e6 elseif savedFog then Lighting.FogEnd = savedFog savedFog = nil end -- camera FOV if Cfg.fovOn then Camera.FieldOfView = Cfg.fov end -- character movement local char = LP.Character local hum = char and char:FindFirstChildOfClass("Humanoid") local root = char and char:FindFirstChild("HumanoidRootPart") if hum then if Cfg.speedOn then hum.WalkSpeed = Cfg.speed speedApplied = true elseif speedApplied then hum.WalkSpeed = 16 speedApplied = false end if Cfg.jumpOn then hum.UseJumpPower = true hum.JumpPower = Cfg.jump jumpApplied = true elseif jumpApplied then hum.JumpPower = 50 jumpApplied = false end end updateFly(hum, root, dt) end) connect(RunService.Stepped, function() local char = LP.Character if Cfg.noclip and char then for _, p in ipairs(char:GetDescendants()) do if p:IsA("BasePart") and p.CanCollide then noclipCache[p] = true p.CanCollide = false end end elseif next(noclipCache) then for p in pairs(noclipCache) do if p.Parent then p.CanCollide = true end end table.clear(noclipCache) end end) connect(UIS.JumpRequest, function() if Cfg.infJump then local hum = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if hum then hum:ChangeState(Enum.HumanoidStateType.Jumping) end end end) connect(LP.Idled, function() if Cfg.antiAfk then VirtualUser:CaptureController() VirtualUser:ClickButton2(Vector2.new()) end end) ---------------------------------------------------------------------- -- Menu show / hide ---------------------------------------------------------------------- local function setMenu(show) main.Visible = show picker.frame.Visible = false if show then mainScale.Scale = baseScale * 0.9 tween(mainScale, { Scale = baseScale }, POP) end end ---------------------------------------------------------------------- -- Input: keybind capture, menu / aim / fly keys, click teleport ---------------------------------------------------------------------- connect(UIS.InputBegan, function(input, processed) if listening then local bind if input.KeyCode ~= Enum.KeyCode.Unknown then bind = input.KeyCode elseif input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 or input.UserInputType == Enum.UserInputType.MouseButton3 then bind = input.UserInputType end if bind then local cb = listening listening = nil cb(bind) end return end if processed then return end if matches(input, Cfg.menuKey) then setMenu(not main.Visible) end -- aim lock: ONE press = lock on, press again = release if Cfg.aimOn and Cfg.aimMode == "Toggle" and matches(input, Cfg.aimKey) then setAim(not Cfg.aimActive) end -- fly toggle key if matches(input, Cfg.flyKey) and Setters.fly then Setters.fly(not Cfg.fly) end if Cfg.clickTp and input.UserInputType == Enum.UserInputType.MouseButton1 and UIS:IsKeyDown(Enum.KeyCode.LeftAlt) then local root = LP.Character and LP.Character:FindFirstChild("HumanoidRootPart") if root then local m = UIS:GetMouseLocation() local ray = Camera:ViewportPointToRay(m.X, m.Y) rayParams.FilterDescendantsInstances = { LP.Character } local hit = Workspace:Raycast(ray.Origin, ray.Direction * 2000, rayParams) if hit then root.CFrame = CFrame.new(hit.Position + Vector3.new(0, 3, 0)) end end end end) ---------------------------------------------------------------------- -- Unload ---------------------------------------------------------------------- Unload = function() for _, c in ipairs(conns) do c:Disconnect() end for _, f in ipairs(cleanups) do pcall(f) end local hum = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if hum then if speedApplied then hum.WalkSpeed = 16 end if jumpApplied then hum.JumpPower = 50 end end if savedLight then for k, v in pairs(savedLight) do Lighting[k] = v end end if savedTime then Lighting.ClockTime = savedTime end if savedFog then Lighting.FogEnd = savedFog end for p in pairs(noclipCache) do if p.Parent then p.CanCollide = true end end for plr in pairs(espObjs) do destroyEsp(plr) end if localHolder.cham then localHolder.cham:Destroy() end menuGui:Destroy() overlay:Destroy() end selectTab(1) setMenu(true) task.delay(0.5, function() Notify("TOXIC HUB", "loaded - made by chucky", Theme.Accent) end)