-- [[ 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. ]] --[[ Ninja Legends Hub · PC + mobile RightShift = show/hide menu · F6 = pause everything Smart auto farm (swing, sell, buy every upgrade, equip best), chi + coin collector, hoops, chests, wheel, bosses, karma training, kill aura, target kill, duels, King of the Hill, souls, pets (equip best, hatch, evolve, sell), teleports, fly, noclip, speed, jump, ESP, full bright, stat tracker, anti-AFK, 3D off, server tools. ]] if game.GameId ~= 1335695570 then return end -- Ninja Legends only if not game:IsLoaded() then game.Loaded:Wait() end local G = getgenv() if G.HNL and G.HNL.Unload then pcall(G.HNL.Unload) end local H = {conns = {}, insts = {}, alive = true} G.HNL = 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 Lighting = game:GetService("Lighting") while not Players.LocalPlayer do task.wait() end local LP = Players.LocalPlayer local okHui, HUI = pcall(function() return gethui and gethui() end) if not (okHui and HUI) then HUI = game:GetService("CoreGui") end 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(type(dt) == "function" and dt() or dt) end end) end ----------------------------------------------------------------- settings (auto-saved) local S = { -- farm Farm = false, Swing = false, Sell = false, SellEvery = 3, BuySwords = true, BuyBelts = true, BuyRanks = true, BuySkills = true, BuyShurikens = true, EquipBest = true, AutoElement = false, Collect = false, Hoops = false, Karma = "Off", -- bosses Boss = false, BossPick = "All", -- combat KillAura = false, KillRange = 60, HuntRange = true, KillFriends = false, AutoDuel = false, KOTH = false, Souls = false, Invis = false, -- pets AutoEquip = true, AutoHatch = false, Crystal = "Blue Crystal", HatchDelay = 2, AutoEvolve = false, SellRarity = "Basic", -- rewards AutoChests = true, AutoWheel = true, -- movement / visuals Fly = false, FlySpeed = 120, Noclip = false, InfJump = false, SpeedOn = false, WalkSpeed = 100, JumpOn = false, JumpPower = 120, ESP = false, Bright = false, Panel = true, NoTrade = false, -- extras AntiAFK = true, Notify = true, ReloadTP = true, No3D = false, } local CFG = "NinjaLegendsHub.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 = "HNLUI" .. 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 = "Ninja Legends 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 local function HubBody() -- own 200-local budget, apart from the menu library ----------------------------------------------------------------- game data repeat task.wait(0.2) until LP:FindFirstChild("dataLoaded") and LP.dataLoaded.Value == true and LP.Character -- right after a teleport the player data isn't there yet local E = RS:WaitForChild("rEvents") local NE = LP:WaitForChild("ninjaEvent") local GREEN, GOLD, RED = Color3.fromRGB(90, 230, 130), Color3.fromRGB(255, 205, 70), Color3.fromRGB(255, 80, 70) local LS = LP:WaitForChild("leaderstats") local function myRoot() local c = LP.Character return c and c:FindFirstChild("HumanoidRootPart") end local function myHum() local c = LP.Character return c and c:FindFirstChildOfClass("Humanoid") end local function alive() local h = myHum() return h and h.Health > 0 and myRoot() ~= nil end local SUF = {"", "K", "M", "B", "T", "Qa", "Qi", "Sx", "Sp", "Oc", "No", "Dc", "Ud", "Dd", "Td", "Qad", "Qid", "Sxd", "Spd", "Ocd", "Nod", "Vg"} local function short(n) n = tonumber(n) or 0 if n ~= n or math.abs(n) == math.huge then return "∞" end local i = 1 while math.abs(n) >= 1000 and i < #SUF do n /= 1000 i += 1 end if math.abs(n) >= 1000 then return string.format("%.2e", n * 1000 ^ (i - 1)) end return i == 1 and tostring(math.floor(n)) or string.format("%.2f%s", n, SUF[i]) end local function inv(r, ...) local ok, a, b, c = pcall(r.InvokeServer, r, ...) return ok, a, b, c end local function val(o, n) local v = o and o:FindFirstChild(n) return v and v.Value end local function nameOf(ov) local v = ov and ov.Value return typeof(v) == "Instance" and v.Name or v end local function owns(folder, n) local f = LP:FindFirstChild(folder) return f and f:FindFirstChild(n) ~= nil end -- one character-moving job at a time (boss, kill aura, collecting, KOTH, karma training) H.job = nil local function busy(name) return H.job and H.job ~= name end local function setJob(name) H.job = name end local function freeJob(name) if H.job == name then H.job = nil end end local function tpTo(cf) local r = myRoot() if r then r.CFrame = cf r.AssemblyLinearVelocity = Vector3.zero end end ----------------------------------------------------------------- islands (found = shown in LP.foundIslands; Ground is always open) local ISLANDS = {} for _, p in ipairs(workspace:WaitForChild("islandUnlockParts"):GetChildren()) do ISLANDS[#ISLANDS + 1] = {name = p.Name, part = p} end table.sort(ISLANDS, function(a, b) return a.part.Position.Y < b.part.Position.Y end) local function found(n) return n == "Ground" or (LP:FindFirstChild("foundIslands") and LP.foundIslands:FindFirstChild(n) ~= nil) end local function openIslands() local t = {"Ground"} for _, i in ipairs(ISLANDS) do if found(i.name) then t[#t + 1] = i.name end end return t end local function islandAt(pos) -- an island is the unlock part closest in height below/around you local best, bd = "Ground", math.huge for _, i in ipairs(ISLANDS) do local d = math.abs(i.part.Position.Y - pos.Y) if d < bd and d < 400 then best, bd = i.name, d end end return best end local function unlockIslands(loud) -- touching an island's unlock spot is how the game discovers it local todo = {} for _, i in ipairs(ISLANDS) do if not found(i.name) then todo[#todo + 1] = i end end if #todo == 0 then if loud then notify("Islands", "Every island is unlocked already.", GREEN) end return end if busy("exploring") or not alive() then return end setJob("exploring") local home = myRoot().CFrame for _, i in ipairs(todo) do tpTo(i.part.CFrame) task.wait(0.6) end tpTo(home) freeJob("exploring") notify("Islands", "Unlocked " .. #todo .. " islands.", GREEN) end loop(20, function() if S.Farm and not H.paused then unlockIslands(false) end end) ----------------------------------------------------------------- the sword (the game only pays swings while it's in your hand) local function swordTool() local n = nameOf(LP.equippedSword) if not n then return end return (LP.Character and LP.Character:FindFirstChild(n)) or LP.Backpack:FindFirstChild(n) end local function holdSword() local t, h = swordTool(), myHum() if t and h and t.Parent ~= LP.Character then h:EquipTool(t) end return t end local lastSwing = 0 local function swing() -- the server ignores swings faster than the sword's attackTime local t = holdSword() local cd = (t and val(t, "attackTime") or 0.4) if LP.ownedGamepasses:FindFirstChild("Faster Sword") then cd /= 2 end if LP.ownedElements:FindFirstChild("Shadow Charge") then cd *= 0.75 end if os.clock() - lastSwing < cd + 0.02 then return end lastSwing = os.clock() NE:FireServer("swingKatana") end ----------------------------------------------------------------- farm: swing, sell, buy, equip local function capacity() local b = nameOf(LP.equippedBelt) local def = b and RS.Belts:FindFirstChild(b, true) return def and val(def, "capacity") or math.huge end local function sell() local r, c = myRoot(), workspace.sellAreaCircles:FindFirstChild("sellAreaCircle") local inner = c and c:FindFirstChild("circleInner") if not (r and inner) then return end if firetouchinterest then firetouchinterest(r, inner, 0) firetouchinterest(r, inner, 1) else local home = r.CFrame r.CFrame = inner.CFrame + Vector3.new(0, 3, 0) task.wait(0.25) r.CFrame = home end end local sold, lastSell = 0, 0 loop(0.05, function() if H.paused then return end if S.Farm or S.Swing or S.KillAura and H.job == "fighting" then if alive() then swing() end end if (S.Farm or S.Sell) and LS.Ninjitsu.Value > 0 then local full = LS.Ninjitsu.Value >= capacity() if full or os.clock() - lastSell >= S.SellEvery then lastSell = os.clock() sell() sold += 1 end end end) local function byPrice(folder) -- every item in that shop folder, cheapest first local t = {} for _, it in ipairs(folder:GetChildren()) do t[#t + 1] = {name = it.Name, price = val(it, "price") or 0} end table.sort(t, function(a, b) return a.price < b.price end) return t end local function equipBestGear() for _, g in ipairs({{"Weapons", "ownedSwords", "equippedSword", "equipSword"}, {"Belts", "ownedBelts", "equippedBelt", "equipBelt"}, {"Ranks", "ownedRanks", "equippedRank", "equipRank"}, {"Shurikens", "ownedShurikens", "equippedShuriken", "equipShuriken"}}) do local best, bp for _, isl in ipairs(RS[g[1]]:GetChildren()) do for _, it in ipairs(isl:GetChildren()) do local p = val(it, "price") or 0 if owns(g[2], it.Name) and (not bp or p > bp) then best, bp = it.Name, p end end end if best and best ~= nameOf(LP[g[3]]) then NE:FireServer(g[4], best) task.wait(0.3) end end end loop(3, function() if H.paused or not (S.Farm or S.BuySwords or S.BuyBelts or S.BuyRanks or S.BuySkills or S.BuyShurikens) then return end local any = S.Farm -- one item at a time, cheapest first (the game's own Buy All is a gamepass) local function buyFrom(folder, ownedName, action) for _, isl in ipairs(openIslands()) do local f = RS[folder]:FindFirstChild(isl) if f then for _, it in ipairs(byPrice(f)) do if not owns(ownedName, it.name) then if LP.Coins.Value < it.price then return end NE:FireServer(action, it.name) task.wait(0.15) end end end end end -- a rank resets swords, belts and coins (the game's rank-up), so ranks go first and gear is rebuilt after if any or S.BuyRanks then local before = #LP.ownedRanks:GetChildren() buyFrom("Ranks", "ownedRanks", "buyRank") if #LP.ownedRanks:GetChildren() > before then task.wait(1.5) end end if any or S.BuySwords then buyFrom("Weapons", "ownedSwords", "buySword") end if any or S.BuyBelts then buyFrom("Belts", "ownedBelts", "buyBelt") end if any or S.BuySkills then buyFrom("Skills", "ownedSkills", "buySkill") end if any or S.BuyShurikens then buyFrom("Shurikens", "ownedShurikens", "buyShuriken") end if S.Farm or S.EquipBest then task.wait(1) equipBestGear() end end) ----------------------------------------------------------------- chi + coins (the pickups only count when you're right on them) local collected = 0 loop(0.5, function() if not S.Collect or H.paused or busy("collecting") or not alive() then return end local f = workspace.spawnedCoins:FindFirstChild(LP.currentMap.Value) if not f then return end local list = {} for _, c in ipairs(f:GetChildren()) do if c:IsA("BasePart") and not c:FindFirstChild("collected") and c.Transparency < 1 then list[#list + 1] = c end end if #list == 0 then return end setJob("collecting") local home = myRoot().CFrame for i, c in ipairs(list) do if i > 25 or not S.Collect or H.paused then break end if c.Parent then tpTo(c.CFrame) collected += 1 task.wait(0.07) end end tpTo(home) freeJob("collecting") end) ----------------------------------------------------------------- hoops + chests + wheel local HOOPWAIT = (RS:FindFirstChild("defaultHoopDebounce") and RS.defaultHoopDebounce.Value or 8) + 0.3 local hoopT = {} loop(0.5, function() if not S.Hoops or H.paused then return end for _, h in ipairs(workspace.Hoops:GetChildren()) do if os.clock() - (hoopT[h] or 0) > HOOPWAIT then hoopT[h] = os.clock() E.hoopEvent:FireServer("useHoop", h) end end end) local CHESTS = {} for _, c in ipairs(RS.chestRewards:GetChildren()) do CHESTS[#CHESTS + 1] = c.Name end local nextR = {} local function due(k, every) if (nextR[k] or 0) > os.clock() then return false end nextR[k] = os.clock() + every return true end loop(5, function() if H.paused then return end if S.AutoChests and due("chests", 90) then for _, n in ipairs(CHESTS) do local ok, res, kind, amt = inv(E.checkChestRemote, n) if ok and res == true then notify("Chest", n .. " · +" .. short(amt) .. " " .. tostring(kind), GREEN) end end inv(E.groupRemote, "groupRewards") end if S.AutoWheel and (val(LP, "freeWheelSpins") or 0) > 0 and due("wheel", 8) then local w = RS.fortuneWheelChances:GetChildren()[1] if w then inv(E.openFortuneWheelRemote, "openFortuneWheel", w) end end end) ----------------------------------------------------------------- bosses (stand next to it and swing; rank-locked bosses just won't take damage) local BOSSES = {"RobotBoss", "EternalBoss", "AncientMagmaBoss"} local bossDead = {} local function bossTarget() for _, n in ipairs(S.BossPick == "All" and BOSSES or {S.BossPick}) do local b = workspace.bossFolder:FindFirstChild(n) local h, r = b and b:FindFirstChildOfClass("Humanoid"), b and b:FindFirstChild("HumanoidRootPart") if h and r and h.Health > 0 and (bossDead[n] or 0) < os.clock() then return b, h, r end end end local bossHit = {} loop(0.1, function() local b, h, r = nil, nil, nil if S.Boss and not H.paused and alive() and not busy("boss") then b, h, r = bossTarget() end if not b then freeJob("boss") return end setJob("boss") tpTo(CFrame.lookAt(r.Position + r.CFrame.LookVector * 8 + Vector3.new(0, 2, 0), r.Position)) swing() -- a boss whose health doesn't move for 15 s is rank-locked for you: skip it for 5 minutes local rec = bossHit[b.Name] if not rec or rec.hp ~= h.Health then bossHit[b.Name] = {hp = h.Health, t = os.clock()} elseif os.clock() - rec.t > 15 then bossDead[b.Name] = os.clock() + 300 bossHit[b.Name] = nil notify("Boss", b.Name .. " won't take your hits (rank too low?), skipping it for now.") end end) ----------------------------------------------------------------- karma training (stand in a light / dark training area you own) local function trainingSpot(side) local best, bk for _, p in ipairs(workspace.trainingAreaParts:GetChildren()) do local need, s, k = val(p, "requiredSkill"), val(p, "whichSide"), math.abs(val(p, "karmaAmount") or 0) if s == side .. " Skills" and need and (owns("ownedLightSkills", need) or owns("ownedDarkSkills", need)) and (not bk or k > bk) then best, bk = p, k end end return best end local karmaWarned loop(1, function() -- background spot: never claims the character, so collecting / bosses / kill aura go first and you come back after if S.Karma == "Off" or H.paused or not alive() or H.job then return end local spot = trainingSpot(S.Karma == "Good" and "Light" or "Dark") if not spot then if not karmaWarned then karmaWarned = true notify("Karma", "You don't own a " .. (S.Karma == "Good" and "light" or "dark") .. " training area skill yet (Light / Dark Skills shop).") end return end if (myRoot().Position - spot.Position).Magnitude > 30 then tpTo(CFrame.new(spot.Position + Vector3.new(0, 4, 0))) end end) ----------------------------------------------------------------- combat local function friendOf(p) local ok, f = pcall(LP.IsFriendsWith, LP, p.UserId) return ok and f end local function inSafe(pos) for _, p in ipairs(workspace.safezoneParts:GetChildren()) do local rel = p.CFrame:PointToObjectSpace(pos) local s = p.Size / 2 + Vector3.new(2, 25, 2) if math.abs(rel.X) <= s.X and math.abs(rel.Y) <= s.Y and math.abs(rel.Z) <= s.Z then return true end end end local function hittable(p) local c = p ~= LP and p.Character local h, r = c and c:FindFirstChildOfClass("Humanoid"), c and c:FindFirstChild("HumanoidRootPart") if h and r and h.Health > 0 and h.Health < math.huge and not c:FindFirstChildOfClass("ForceField") and not inSafe(r.Position) then return c, h, r end end H.target = nil -- set by "Kill player" local dmg = {} -- last damage seen per target, for the ESP's hits estimate loop(0.1, function() local me = myRoot() if H.paused or not me or not alive() then freeJob("fighting") return end local tc, th, tr if H.target then tc, th, tr = hittable(H.target) if not tc then if not (H.target.Parent and H.target.Character and H.target.Character:FindFirstChildOfClass("Humanoid") and H.target.Character.Humanoid.Health > 0) then notify("Kill player", H.target.DisplayName .. " is down.", GREEN) H.target = nil end end end if not tc and S.KillAura then local bd for _, p in ipairs(Players:GetPlayers()) do local c, h, r = hittable(p) if c and (S.KillFriends or not friendOf(p)) then local d = (r.Position - me.Position).Magnitude if d <= (S.HuntRange and S.KillRange or 14) and (not bd or d < bd) then tc, th, tr, bd = c, h, r, d end end end end if not tc or busy("fighting") then freeJob("fighting") return end setJob("fighting") local hp = th.Health if (tr.Position - me.Position).Magnitude > 4 then tpTo(tr.CFrame * CFrame.new(0, 0, 3)) end swing() task.delay(0.5, function() if th.Parent and th.Health < hp then dmg[tc] = hp - th.Health end end) end) -- duels, King of the Hill, souls, invisibility loop(1, function() if H.paused then return end if S.AutoDuel and RS.duelInProgress.Value and not RS.duelStarted.Value and due("duel", 5) then E.duelEvent:FireServer("joinDuel") end if S.Invis and due("invis", 55) then NE:FireServer("goInvisible") end if S.Souls and alive() then for _, s in ipairs(workspace.soulPartsFolder:GetChildren()) do if s:IsA("BasePart") and not s:FindFirstChild("collected") then if (myRoot().Position - s.Position).Magnitude > 10 and not busy("souls") then setJob("souls") tpTo(s.CFrame + Vector3.new(0, 3, 0)) task.wait(0.2) end NE:FireServer("collectSoul", s) end end freeJob("souls") end end) loop(0.3, function() local hill = workspace:FindFirstChild("kingOfTheHillPart") if not S.KOTH or H.paused or not hill or not alive() or H.job then return end -- background spot, like karma training if (myRoot().Position - hill.Position).Magnitude > 6 then tpTo(hill.CFrame + Vector3.new(0, 4, 0)) end swing() -- knocks challengers off end) ----------------------------------------------------------------- pets local RANKS = {} for _, f in ipairs(LP.petsFolder:GetChildren()) do RANKS[#RANKS + 1] = f.Name end local function allPets() local t = {} for _, f in ipairs(LP.petsFolder:GetChildren()) do for _, p in ipairs(f:GetChildren()) do t[#t + 1] = {pet = p, rank = f.Name} end end return t end local masterNext local function slots() -- globalFunctions.findEmptyPetSlot local gp = LP.ownedGamepasses local n = 2 + (LP.MembershipType == Enum.MembershipType.Premium and 1 or 0) if gp:FindFirstChild("+4 Pet Slots") then n += 4 end if gp:FindFirstChild("+2 Pet Slots") then n += 2 end if gp:FindFirstChild("+3 Pet Slots") then n += 3 end for _, e in ipairs(LP.ownedElements:GetChildren()) do local d = RS.Elements:FindFirstChild(e.Name) n += d and val(d, "petSlots") or 0 end return math.min(n, 15) end local function equippedSet() local t = {} for _, v in ipairs(LP.equippedPets:GetChildren()) do if v.Value then t[v.Value] = true end end return t end local function equipBestPets() local all = allPets() table.sort(all, function(a, b) return (val(a.pet, "ninjitsu") or 0) > (val(b.pet, "ninjitsu") or 0) end) local want, eq = {}, equippedSet() for i = 1, math.min(slots(), #all) do want[all[i].pet] = true end for p in pairs(eq) do if not want[p] then E.equipPetEvent:FireServer("unequipPet", p) task.wait(0.25) end end for p in pairs(want) do if not eq[p] then E.equipPetEvent:FireServer("equipPet", p) task.wait(0.25) end end end loop(12, function() if S.AutoEquip and not H.paused then equipBestPets() end end) loop(15, function() if S.AutoEvolve and not H.paused then inv(E.autoEvolveRemote, "autoEvolvePets") end end) local CRYSTALS = {} for _, c in ipairs(RS.crystalPrices:GetChildren()) do CRYSTALS[#CRYSTALS + 1] = {name = c.Name, price = val(c, "price") or 0, kind = val(c, "priceType") or "Chi"} end table.sort(CRYSTALS, function(a, b) return (a.kind == b.kind and a.price < b.price) or (a.kind ~= b.kind and a.kind == "Chi") end) local CRYNAMES = {} for _, c in ipairs(CRYSTALS) do CRYNAMES[#CRYNAMES + 1] = c.name end local function crystal(n) for _, c in ipairs(CRYSTALS) do if c.name == n then return c end end end local hatched, hatchBack = 0, 0 loop(function() return S.HatchDelay end, function() if not S.AutoHatch or H.paused or os.clock() < hatchBack then return end local c = crystal(S.Crystal) if not c or (val(LP, c.kind) or 0) < c.price then return end local ok, name, rarity = inv(E.openCrystalRemote, "openCrystal", c.name) if ok and type(name) == "string" then hatched += 1 else hatchBack = os.clock() + 1 end -- the server has a ~2 s cooldown between crystals end) local function sellRarity(r) local eq, n = equippedSet(), 0 for _, x in ipairs(allPets()) do if x.rank == r and not eq[x.pet] then E.sellPetEvent:FireServer("sellPet", x.pet) n += 1 task.wait(0.12) end end notify("Pets", n > 0 and ("Sold " .. n .. " " .. r .. " pets (equipped ones kept).") or ("No unequipped " .. r .. " pets.")) end ----------------------------------------------------------------- movement + visuals conn(RunS.Heartbeat, function() local r, h = myRoot(), myHum() if not (r and h) then return end if S.Fly then local up = (UIS:IsKeyDown(Enum.KeyCode.Space) or h.Jump) and 1 or (UIS:IsKeyDown(Enum.KeyCode.LeftShift) or UIS:IsKeyDown(Enum.KeyCode.LeftControl)) and -1 or 0 local v = h.MoveDirection + Vector3.new(0, up, 0) r.AssemblyLinearVelocity = v.Magnitude > 0 and v.Unit * S.FlySpeed or Vector3.zero end if S.SpeedOn then h.WalkSpeed = S.WalkSpeed end if S.JumpOn then h.UseJumpPower = true h.JumpPower = S.JumpPower end end) conn(RunS.Stepped, function() if not (S.Noclip or S.Fly) then return end local c = LP.Character if c then for _, p in ipairs(c:GetDescendants()) do if p:IsA("BasePart") and p.CanCollide then p.CanCollide = false end end end end) conn(UIS.JumpRequest, function() local h = myHum() if S.InfJump and h then h:ChangeState(Enum.HumanoidStateType.Jumping) end end) local lightOrig loop(1, function() if S.Bright then lightOrig = lightOrig or {Lighting.Brightness, Lighting.ClockTime, Lighting.FogEnd, Lighting.GlobalShadows, Lighting.Ambient} Lighting.Brightness, Lighting.ClockTime, Lighting.FogEnd, Lighting.GlobalShadows, Lighting.Ambient = 2, 14, 1e9, false, Color3.fromRGB(180, 180, 180) elseif lightOrig then Lighting.Brightness, Lighting.ClockTime, Lighting.FogEnd, Lighting.GlobalShadows, Lighting.Ambient = table.unpack(lightOrig) lightOrig = nil end end) local tradeSent loop(2, function() if tradeSent ~= S.NoTrade and (tradeSent ~= nil or S.NoTrade) then E.tradingEvent:FireServer(S.NoTrade and "disableTrading" or "enableTrading") end tradeSent = S.NoTrade end) local espFold = inst("Folder", {Name = "NL_ESP"}, HUI) H.insts[#H.insts + 1] = espFold local esp = {} local function clearEsp(p) local e = esp[p] if e then e.hl:Destroy() e.bb:Destroy() esp[p] = nil end end conn(Players.PlayerRemoving, clearEsp) loop(0.3, function() for _, p in ipairs(Players:GetPlayers()) do if p ~= LP and S.ESP and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then local c = p.Character local e = esp[p] if not e or e.char ~= c then clearEsp(p) local hl = inst("Highlight", {FillTransparency = 0.75, OutlineTransparency = 0.1, DepthMode = Enum.HighlightDepthMode.AlwaysOnTop, Adornee = c}, espFold) local bb = inst("BillboardGui", {Size = UDim2.fromOffset(190, 40), StudsOffset = Vector3.new(0, 3.4, 0), AlwaysOnTop = true, Adornee = c.HumanoidRootPart, LightInfluence = 0}, espFold) local l = inst("TextLabel", {Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, TextColor3 = Color3.new(1, 1, 1), TextStrokeTransparency = 0.4, Font = Enum.Font.GothamBold, TextSize = 12, RichText = true}, bb) e = {char = c, hl = hl, bb = bb, l = l} esp[p] = e end local h = c:FindFirstChildOfClass("Humanoid") local hp = h and h.Health or 0 local safe = inSafe(c.HumanoidRootPart.Position) local hits = dmg[c] and math.ceil(hp / dmg[c]) local col = safe and GOLD or (hits and hits <= 3) and GREEN or RED e.hl.FillColor, e.hl.OutlineColor = col, col local me = myRoot() e.l.Text = string.format("%s · %s%s\nHP %s · %s%s", p.DisplayName, val(p:FindFirstChild("leaderstats"), "Rank") or "", safe and " · safe zone" or "", short(hp), hits and ("~" .. hits .. " hits") or "hits ?", me and string.format(" · %dm", (c.HumanoidRootPart.Position - me.Position).Magnitude) or "") else clearEsp(p) end end end) ----------------------------------------------------------------- element mastery = the game's rebirth (resets rank + gear for a permanent multiplier) local function nextElement() for _, e in ipairs(RS.Elements:GetChildren()) do if not LP.ownedElements:FindFirstChild(e.Name) then return e end end end function masterNext(loud) local e = nextElement() if not e then if loud then notify("Elements", "You've mastered every element.", GREEN) end return end local need = val(e, "rank") if not loud and need and not owns("ownedRanks", need) then return end E.elementMasteryEvent:FireServer(e.Name) notify("Element mastery", "Mastering " .. e.Name .. " (x" .. tostring(val(e, "multiplier") or "?") .. ")…", GOLD) task.wait(3) end loop(3, function() if S.AutoElement and not H.paused then masterNext(false) end end) ----------------------------------------------------------------- extras (the same set every Stizzyyy hub has) do conn(LP.Idled, function() if not S.AntiAFK then return end local VU = game:GetService("VirtualUser") VU:CaptureController() VU:ClickButton2(Vector2.new()) end) if queue_on_teleport then -- queued right away (the teleport event doesn't always fire before you leave); the queued loader re-checks the setting pcall(queue_on_teleport, [[if not game:IsLoaded() then game.Loaded:Wait() end task.wait(3) local ok, cfg = pcall(function() return game:GetService("HttpService"):JSONDecode(readfile("NinjaLegendsHub.json")) end) if (not ok or cfg.ReloadTP ~= false) and isfile("NinjaLegendsHub.lua") then local f, e = loadstring(readfile("NinjaLegendsHub.lua")) if f then f() else warn(e) end end]]) end local r3d loop(1, function() if S.No3D ~= r3d then r3d = S.No3D pcall(RunS.Set3dRenderingEnabled, RunS, not r3d) end end) end local function hop(mode) local TP = game:GetService("TeleportService") if mode == "rejoin" then notify("Server", "Rejoining…") pcall(TP.TeleportToPlaceInstance, TP, game.PlaceId, game.JobId, LP) return end -- "very limited spots": 2-5 left, or 1 up to half the server when servers hold 6 or fewer local max = Players.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(Http.JSONDecode, Http, 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, LP) 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, LP) then notify("Server", "Couldn't join that server, try again.") end end ----------------------------------------------------------------- menu local T = UI.tab("Main") T:section("Status") local status = T:label("…") T:section("About") T:label("Made by Stizzyyy · always free & keyless.\nFound this behind a key system? It's a stolen copy.") T:label("Not included: anything that spends Robux, and \"infinite money / gems\" (fake: the server owns your stats).") T:button("Unload", function() H.Unload() end, "Stops everything and removes the menu") T = UI.tab("Farm") T:section("Smart auto farm") T:toggle("Smart auto farm​​", "Farm", save, "Swings non-stop, sells when your belt is full (or every few seconds), buys every sword, belt, rank, skill and shuriken you can afford on the islands you've found, and equips the best.") local farmInfo = T:label("…") T:section("Ninjitsu") T:toggle("Auto swing​​", "Swing", save, "Swings as fast as your sword allows (the server ignores anything faster).") T:toggle("Auto sell​​", "Sell", save, "Sells from anywhere: the moment your belt is full, or on the timer below.") T:slider("Sell every (s)", "SellEvery", 1, 30, 1, save) T:section("Buy upgrades") T:toggle("Swords​​", "BuySwords", save) T:toggle("Belts​​", "BuyBelts", save) T:toggle("Ranks​​", "BuyRanks", save, "Buying a rank resets your swords, belts and coins (that's how the game ranks you up), so the farm buys the next rank first and rebuilds gear after.") T:toggle("Skills​​", "BuySkills", save) T:toggle("Shurikens​​", "BuyShurikens", save) T:toggle("Equip best gear​​", "EquipBest", save, "Keeps your best owned sword, belt, rank and shuriken equipped.") T:section("Collect") T:toggle("Chi + coins​​", "Collect", save, "Grabs the chi and coin pickups around you (they only count when you touch them, so it hops onto each one and back).") T:toggle("Hoops​​", "Hoops", save, "Every hoop, again as soon as it's ready.") T:section("Karma") T:choice("Karma training", "Karma", {"Off", "Good", "Bad"}, save, "Stands you in your best light (good) or dark (bad) training area. Needs a training area skill from the Light / Dark Skills shop.") T = UI.tab("Bosses") T:section("Auto boss") T:toggle("Auto boss​​", "Boss", save, "Fights the boss you pick whenever it's alive. Bosses your rank can't fight are skipped automatically.") T:choice("Boss", "BossPick", {"All", "RobotBoss", "EternalBoss", "AncientMagmaBoss"}, save) local bossInfo = T:label("…") T = UI.tab("Combat") T:section("Kill aura") T:toggle("Kill aura​​", "KillAura", save, "Swings at any player in range who's outside a safe zone. Weak players drop in one hit; strong ones take a few seconds.") T:toggle("Hunt (teleport to targets)​​", "HuntRange", save, "On: goes to anyone within the range below. Off: only hits players who come close to you.") T:slider("Range (studs)", "KillRange", 15, 300, 5, save) T:toggle("Hit friends too​​", "KillFriends", save) T:section("Kill player") local plist = T:list(170) local function refreshPlayers() for _, c in ipairs(plist:GetChildren()) do if c:IsA("Frame") then c:Destroy() end end for i, p in ipairs(Players:GetPlayers()) do if p ~= LP then listItem(plist, p.DisplayName .. " · " .. (val(p:FindFirstChild("leaderstats"), "Rank") or ""), "Kill", function() H.target = p notify("Kill player", "Going after " .. p.DisplayName .. "…", RED) end, i) end end end refreshPlayers() conn(Players.PlayerAdded, function() task.wait(1) refreshPlayers() end) conn(Players.PlayerRemoving, function() task.defer(refreshPlayers) end) T:button("Stop chasing", function() H.target = nil end) T:section("Events") T:toggle("Auto join duels​​", "AutoDuel", save, "Joins every duel. Turn on Kill aura too so you fight in it.") T:toggle("King of the Hill​​", "KOTH", save, "Holds the hill and swings at anyone who climbs it.") T:toggle("Collect souls​​", "Souls", save, "Picks up the souls players drop.") T:toggle("Auto invisibility​​", "Invis", save, "Recasts your Invisibility skill whenever it runs out.") T = UI.tab("Pets") T:section("Equip") T:toggle("Auto equip best​​", "AutoEquip", save, "Keeps your best Ninjitsu pets in every slot you have.") local petInfo = T:label("…") T:section("Crystals") T:toggle("Auto open crystal​​", "AutoHatch", save, "Opens the chosen crystal with chi or gems. Never spends Robux.") T:choice("Crystal", "Crystal", CRYNAMES, save) T:slider("Open delay (s)", "HatchDelay", 1.5, 6, 0.5, save, "The game allows about one crystal every 2 s.") local hatchInfo = T:label("…") T:section("Evolve + sell") T:toggle("Auto evolve (all tiers)​​", "AutoEvolve", save, "The game's own auto evolve: evolve, eternalise, immortalize, legend, elementalize and up.") T:choice("Rarity to sell", "SellRarity", RANKS, save) T:button("Sell all of that rarity", function() task.spawn(sellRarity, S.SellRarity) end, "Never sells equipped pets.") T = UI.tab("Rewards") T:section("Claim") T:toggle("Chests​​", "AutoChests", save, "Every chest from anywhere when its timer is up, plus the group reward.") T:toggle("Free wheel spins​​", "AutoWheel", save, "Uses free spins only.") T = UI.tab("Teleport") T:section("Islands") T:button("Ground (spawn)", function() local s = workspace.spawns:FindFirstChildWhichIsA("BasePart", true) if s then tpTo(s.CFrame + Vector3.new(0, 5, 0)) end end) for _, i in ipairs(ISLANDS) do T:button(i.name, function() tpTo(i.part.CFrame + Vector3.new(0, 6, 0)) end) end T:section("Unlock") T:button("Unlock all islands", function() task.spawn(unlockIslands, true) end, "Visits every island's unlock spot so all their shops open up. The smart farm does this by itself.") T:section("Shops + areas") for _, f in ipairs({"shopAreaCircles", "skillAreaCircles"}) do for _, c in ipairs(workspace[f]:GetChildren()) do local a, inner = val(c, "areaName"), c:FindFirstChild("circleInner", true) if a and inner and a == "Ground" then T:button((f == "shopAreaCircles" and "Shop" or "Skills shop") .. " (Ground)", function() tpTo(inner.CFrame + Vector3.new(0, 4, 0)) end) end end end for _, n in ipairs({"lightSkillsAreaCircle", "darkSkillsAreaCircle", "cloningAreaCircle", "zenMasterCircle", "kingOfTheHillPart"}) do local o = workspace:FindFirstChild(n) local p = o and (o:IsA("BasePart") and o or o:FindFirstChild("circleInner", true) or o:FindFirstChildWhichIsA("BasePart", true)) if p then T:button(n:gsub("AreaCircle", ""):gsub("Circle", ""):gsub("Part", ""):gsub("^%l", string.upper):gsub("(%l)(%u)", "%1 %2"), function() tpTo(p.CFrame + Vector3.new(0, 4, 0)) end) end end T:section("Bosses") for _, n in ipairs(BOSSES) do T:button(n:gsub("(%l)(%u)", "%1 %2"), function() local b = workspace.bossFolder:FindFirstChild(n) local r = b and b:FindFirstChild("HumanoidRootPart") if r then tpTo(r.CFrame * CFrame.new(0, 0, 10)) end end) end T:section("Crystals") for _, c in ipairs(workspace.mapCrystalsFolder:GetChildren()) do T:button(c.Name, function() tpTo(c:GetPivot() + Vector3.new(0, 6, 0)) end) end T = UI.tab("Player") T:section("Movement") T:toggle("Walk speed​​", "SpeedOn", save) T:slider("Speed", "WalkSpeed", 16, 500, 2, save) T:toggle("Jump power​​", "JumpOn", save) T:slider("Power", "JumpPower", 50, 500, 5, save) T:toggle("Infinite jump​​", "InfJump", save) T:section("Fly") T:toggle("Fly​​", "Fly", save, "WASD / thumbstick to move, Space / jump up, Shift down.") T:slider("Fly speed", "FlySpeed", 10, 500, 5, save) T:toggle("Noclip​​", "Noclip", save) T:section("Elements (the game's rebirth)") T:toggle("Auto element mastery​​", "AutoElement", save, "Masters your next element the moment you own the rank it needs. This is the game's rebirth: it resets your rank, swords, belts and coins for a big permanent multiplier.") T:button("Master next element now", function() masterNext(true) end, "Resets your rank and progress for the next element's multiplier, like the game's own Element Mastery.") local elemInfo = T:label("…") T:section("Trading") T:toggle("Block trade requests​​", "NoTrade", save) T = UI.tab("Visuals") T:section("ESP") T:toggle("Player ESP​​", "ESP", save, "Every player's HP and rank. Green = you take them in ~3 hits or less (learned from your hits), gold = in a safe zone.") T:section("World") T:toggle("Full bright​​", "Bright", save) T:section("Panel") T:toggle("Stat tracker​​", "Panel", save, "Small draggable panel: Ninjitsu, coins and chi per hour, FPS and ping.") T = UI.tab("Extras") T:section("General") T:toggle("Anti-AFK​​", "AntiAFK", save, "Stops Roblox from kicking you for being idle.") T:toggle("Reload the hub after teleports​​", "ReloadTP", save, queue_on_teleport and nil or "Doesn't work on this executor: put the hub in your executor's autoexec folder.") T:toggle("Notifications​​", "Notify", save) T:section("Performance") T:toggle("Turn off 3D rendering​​", "No3D", save, "Black screen and much less GPU, for AFK grinding.") T:section("Server") T:button("Rejoin", function() hop("rejoin") end) T:button("Server hop", function() hop("any") end) T:button("Join a small server", function() hop("small") end) T:button("Join a full server", function() hop("full") end, "A server with very limited spots left") ----------------------------------------------------------------- stat tracker panel + status local panel = inst("Frame", {Size = UDim2.fromOffset(260, 112), Position = UDim2.new(0, 16, 0.5, -56), BackgroundColor3 = C.bg, BackgroundTransparency = 0.15, BorderSizePixel = 0, Active = true}, Gui) inst("UICorner", {CornerRadius = UDim.new(0, 12)}, panel) inst("UIStroke", {Color = C.stroke, Transparency = 0.3}, panel) local pl = inst("TextLabel", {Size = UDim2.new(1, -24, 1, -16), Position = UDim2.fromOffset(12, 8), BackgroundTransparency = 1, TextColor3 = C.text, RichText = true, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top, FontFace = Font.new("rbxasset://fonts/families/Montserrat.json"), TextSize = 13, LineHeight = 1.15}, panel) do -- drag local drag, start, from conn(panel.InputBegan, function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drag, start, from = true, i.Position, panel.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 panel.Position = UDim2.new(from.X.Scale, from.X.Offset + d.X, from.Y.Scale, from.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 conn(UIS.InputBegan, function(i, gp) if gp then return end if i.KeyCode == Enum.KeyCode.RightShift then Win.Visible = not Win.Visible elseif i.KeyCode == Enum.KeyCode.F6 then H.paused = not H.paused notify("Ninja Legends Hub", H.paused and "Paused · F6 to resume" or "Resumed", C.clay) end end) local frames = 0 conn(RunS.RenderStepped, function() frames += 1 end) local hist, prev = {}, nil loop(1, function() local fps = frames frames = 0 -- per-hour rates from the last 60 s. Lifetime totals are too big to show these gains, so this follows the live values: -- a drop (sold, spent, rank-up) counts what came in after it local now = {n = LS.Ninjitsu.Value, c = LP.Coins.Value, x = LP.Chi.Value} local function gain(a, b) if b >= a then return b - a end return b < a * 0.01 and b or 0 end if prev then hist[#hist + 1] = {gain(prev.n, now.n), gain(prev.c, now.c), gain(prev.x, now.x)} if #hist > 60 then table.remove(hist, 1) end end prev = now local n, c, x = 0, 0, 0 for _, h in ipairs(hist) do n += h[1] c += h[2] x += h[3] end local k = 3600 / math.max(1, #hist) local ping = math.floor(LP:GetNetworkPing() * 1000) local hex = "#" .. C.clay:ToHex() panel.Visible = S.Panel panel.BackgroundColor3, pl.TextColor3 = C.bg, C.text pl.Text = string.format("Ninja Legends Hub\nNinjitsu %s/h · Coins %s/h\nChi %s/h\n%s · %d FPS · %d ms\n%s", hex, short(n * k), short(c * k), short(x * k), val(LS, "Rank") or "", fps, ping, H.job and ("Busy: " .. H.job) or (S.Farm and "Farming" or "Farm off")) status(string.format("%s · Ninjitsu %s / %s\nCoins %s · Chi %s · Gems %s · Karma %s\nKills %s · Souls %s%s", val(LS, "Rank") or "", short(LS.Ninjitsu.Value), short(capacity()), short(LP.Coins.Value), short(LP.Chi.Value), short(LP.Gems.Value), short(val(LP, "Karma")), short(LS.Kills.Value), short(val(LP, "Souls")), H.paused and "\nPaused (F6)" or "")) farmInfo(string.format("Sword: %s · Belt: %s\nSold %d times this session · %d chi/coin pickups", nameOf(LP.equippedSword) or "?", nameOf(LP.equippedBelt) or "?", sold, collected)) local bs = {} for _, b in ipairs(BOSSES) do local m = workspace.bossFolder:FindFirstChild(b) local h = m and m:FindFirstChildOfClass("Humanoid") bs[#bs + 1] = b:gsub("Boss", "") .. ": " .. (h and (short(h.Health) .. " HP") or "down") end bossInfo(table.concat(bs, " · ")) petInfo(string.format("Pet slots %d · pets %d / %d", slots(), #allPets(), val(LP, "maxPetCapacity") or 0)) local ne = nextElement() elemInfo(ne and string.format("Next: %s (x%s) · needs rank %s%s · mastered %d", ne.Name, tostring(val(ne, "multiplier") or "?"), tostring(val(ne, "rank")), owns("ownedRanks", tostring(val(ne, "rank"))) and " ✓" or "", #LP.ownedElements:GetChildren()) or "Every element mastered.") local cr = crystal(S.Crystal) hatchInfo(cr and string.format("%s costs %s %s · you have %s · opened %d", cr.name, short(cr.price), cr.kind, short(val(LP, cr.kind)), hatched) or "") end) function H.Unload() H.alive = false pcall(RunS.Set3dRenderingEnabled, RunS, true) if lightOrig then pcall(function() Lighting.Brightness, Lighting.ClockTime, Lighting.FogEnd, Lighting.GlobalShadows, Lighting.Ambient = table.unpack(lightOrig) 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.HNL == H then G.HNL = nil end end notify("Ninja Legends Hub", UIS.KeyboardEnabled and "Ready · RightShift menu · F6 pause" or "Ready · tap the menu button", C.clay) print("[Ninja Legends Hub] by Stizzyyy · always free & keyless · rscripts.net/@Stizzyyy") end HubBody()