--[[ Forge - Anemo (LOCALSCRIPT, no server needed) SETUP: put this as a LocalScript in StarterPlayer > StarterPlayerScripts (or StarterGui). No RemoteEvent, no server script. Tabs: Extra - Headless + Korblox right leg toggles (client-side, persist across respawns) + read-only Remote Inspector (lists Remote names in ReplicatedStorage, never fires them) Catalog - live emote search (AvatarEditorService), click to play Animations - live animation-pack search (idle/walk/run/jump/fall/climb/swim) Settings - effects on/off, window style, bubble size, reset positions, unload Effects: animated border shine, top-line shimmer, pulsing bubble, drifting motes, springy buttons and toggles, tab slide-in. Settings > Effects turns them all off. Floating logo bubble: tap it to open/close the window, drag it anywhere. RightCtrl also toggles the window. Animations tab: "Full packs" applies a whole official pack; "Per-slot custom" lets you set Idle, Walk, Run, Jump, Fall, Climb, Swim and Swim idle separately, from any animation ID or from any pack's matching animation. Customisation (Settings tab): accent colour, background theme, corner style, window style (solid/glass/clear), window size, bubble size and toggle key. The logo loads through several fallbacks (thumbnail, asset id, asset URL) and shows an "F" monogram if the image can never load. How it works (everything runs on YOUR client; Roblox replicates the animations your own character plays to everyone in the server): - Emotes: played on the character's Animator at Action4 priority with 0 fade time. Switching emotes stops the old track instantly. Emote animations are cached and preloaded as soon as search results appear, so clicks start with no loading lag. - Animation packs: built-in table of official Roblox R15 packs (no web calls). The IDs are written into the character's Animate script, which is restarted so it applies instantly. The pack is re-applied after every respawn. "Default" restores your original animations. ]] local function runClient() local Players = game:GetService("Players") local ContentProvider = game:GetService("ContentProvider") local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") local AvatarEditorService = game:GetService("AvatarEditorService") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") --// Config local LOGO_ASSET = 134885781177002 -- Tried in order. The thumbnail form works for BOTH Image and Decal asset IDs, which is the -- usual reason a raw rbxassetid:// logo shows up blank. local LOGO_CANDIDATES = { "rbxthumb://type=Asset&id=" .. LOGO_ASSET .. "&w=420&h=420", "rbxassetid://" .. LOGO_ASSET, "http://www.roblox.com/asset/?id=" .. LOGO_ASSET, } local TOGGLE_KEY = Enum.KeyCode.RightControl local WIN_W, WIN_H = 440, 470 local TOP_H = 56 local COLORS = { Background = Color3.fromRGB(10, 10, 10), Panel = Color3.fromRGB(20, 20, 20), Element = Color3.fromRGB(30, 30, 30), Hover = Color3.fromRGB(50, 50, 50), Stroke = Color3.fromRGB(70, 70, 70), Text = Color3.fromRGB(255, 255, 255), SubText = Color3.fromRGB(160, 160, 160), Accent = Color3.fromRGB(255, 255, 255), } local TWEEN_FAST = TweenInfo.new(0.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local TWEEN_MED = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local TWEEN_SPRING = TweenInfo.new(0.35, Enum.EasingStyle.Back, Enum.EasingDirection.Out) -- cosmetic effects (Settings > Effects). All animated visuals read fx.enabled. local fx = { enabled = true, openInfo = TweenInfo.new(0.4, Enum.EasingStyle.Back, Enum.EasingDirection.Out) } local STYLES = { { "Solid", 0 }, { "Glass", 0.25 }, { "Clear", 0.5 } } local SIZES = { { "Small", 44 }, { "Medium", 56 }, { "Large", 72 } } local SCALES = { { "Small", 0.8 }, { "Normal", 1 }, { "Large", 1.2 } } local THEMES = { { "Mono", Color3.fromRGB(255, 255, 255) }, { "Anemo", Color3.fromRGB(115, 235, 205) }, { "Ocean", Color3.fromRGB(95, 170, 255) }, { "Violet", Color3.fromRGB(185, 145, 255) }, { "Ember", Color3.fromRGB(255, 145, 95) }, { "Rose", Color3.fromRGB(255, 125, 165) }, } --// State local connections = {} local currentEmoteTrack = nil local animCache = {} -- [assetId] = Animation instance (preloaded) local packBusy = false local originalIds = {} -- [Animation instance] = original AnimationId local selectedPack = nil -- last animation pack table, re-applied on respawn local scaleMul = 1 local function track(conn) table.insert(connections, conn) return conn end -- Anything coloured by the accent registers here so the theme can change live local accentBindings = {} local function bindAccent(fn) table.insert(accentBindings, fn) fn(COLORS.Accent) end local function setAccent(color) COLORS.Accent = color for _, fn in ipairs(accentBindings) do pcall(fn, color) end end ---------------------------------------------------------------------------- -- UI helpers ---------------------------------------------------------------------------- local function new(class, props, parent) local inst = Instance.new(class) for k, v in pairs(props) do inst[k] = v end if parent then inst.Parent = parent end return inst end local sharpCorners = false local cornerBase = setmetatable({}, { __mode = "k" }) local function cornerRadiusFor(base) if sharpCorners and base.Scale < 1 then return UDim.new(0, math.min(base.Offset, 4)) end return base end local function corner(parent, radius) local base = radius or UDim.new(0, 8) local c = new("UICorner", { CornerRadius = cornerRadiusFor(base) }, parent) cornerBase[c] = base return c end local function stroke(parent, color, thickness) return new("UIStroke", { Color = color or COLORS.Stroke, Thickness = thickness or 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, }, parent) end local function tween(inst, info, props) TweenService:Create(inst, info, props):Play() end local function restColor(btn) return btn:GetAttribute("Active") and COLORS.Accent or COLORS.Element end local function makeButton(parent, text, size, position) local btn = new("TextButton", { Text = text, Size = size, Position = position or UDim2.new(), BackgroundColor3 = COLORS.Element, TextColor3 = COLORS.Text, Font = Enum.Font.GothamMedium, TextSize = 13, AutoButtonColor = false, TextTruncate = Enum.TextTruncate.AtEnd, }, parent) corner(btn, UDim.new(0, 9)) local s = stroke(btn) local pop = new("UIScale", {}, btn) local function popTo(v, info) tween(pop, info, { Scale = fx.enabled and v or 1 }) end track(btn.MouseEnter:Connect(function() if not btn:GetAttribute("Active") then tween(btn, TWEEN_FAST, { BackgroundColor3 = COLORS.Hover }) end tween(s, TWEEN_FAST, { Color = COLORS.Accent }) popTo(1.02, TWEEN_FAST) end)) track(btn.MouseLeave:Connect(function() tween(btn, TWEEN_FAST, { BackgroundColor3 = restColor(btn) }) tween(s, TWEEN_FAST, { Color = COLORS.Stroke }) popTo(1, TWEEN_FAST) end)) track(btn.MouseButton1Down:Connect(function() tween(btn, TWEEN_FAST, { BackgroundColor3 = COLORS.Stroke }) popTo(0.96, TWEEN_FAST) end)) track(btn.MouseButton1Up:Connect(function() tween(btn, TWEEN_FAST, { BackgroundColor3 = btn:GetAttribute("Active") and COLORS.Accent or COLORS.Hover }) popTo(1.02, TWEEN_SPRING) end)) return btn end local function makeTextBox(parent, placeholder, size, position) local box = new("TextBox", { PlaceholderText = placeholder, PlaceholderColor3 = COLORS.SubText, Text = "", Size = size, Position = position or UDim2.new(), BackgroundColor3 = COLORS.Element, TextColor3 = COLORS.Text, Font = Enum.Font.Gotham, TextSize = 13, ClearTextOnFocus = false, }, parent) corner(box, UDim.new(0, 9)) local s = stroke(box) track(box.Focused:Connect(function() tween(s, TWEEN_FAST, { Color = COLORS.Accent }) end)) track(box.FocusLost:Connect(function() tween(s, TWEEN_FAST, { Color = COLORS.Stroke }) end)) return box end local function makeScroller(parent, size, position) local sf = new("ScrollingFrame", { Size = size, Position = position, BackgroundColor3 = COLORS.Panel, BorderSizePixel = 0, ScrollBarThickness = 3, ScrollBarImageColor3 = COLORS.SubText, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, }, parent) corner(sf, UDim.new(0, 10)) stroke(sf) bindAccent(function(c) sf.ScrollBarImageColor3 = c end) new("UIPadding", { PaddingTop = UDim.new(0, 6), PaddingBottom = UDim.new(0, 6), PaddingLeft = UDim.new(0, 6), PaddingRight = UDim.new(0, 8), }, sf) return sf end local function viewportSize() local cam = workspace.CurrentCamera return cam and cam.ViewportSize or Vector2.new(1280, 720) end ---------------------------------------------------------------------------- -- Logo (loads through fallbacks; monogram if nothing loads) ---------------------------------------------------------------------------- local logoParts = {} local function attachLogo(parent, sizeScale, z) local img = new("ImageLabel", { Name = "Logo", Image = LOGO_CANDIDATES[1], BackgroundTransparency = 1, AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(0.5, 0, 0.5, 0), Size = UDim2.new(sizeScale, 0, sizeScale, 0), ScaleType = Enum.ScaleType.Crop, ZIndex = z, }, parent) corner(img, UDim.new(1, 0)) -- clips the logo image into a circle local mono = new("TextLabel", { Name = "LogoMonogram", Text = "F", Font = Enum.Font.GothamBlack, TextScaled = true, TextColor3 = COLORS.Text, BackgroundTransparency = 1, Visible = false, AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(0.5, 0, 0.5, 0), Size = UDim2.new(sizeScale * 0.7, 0, sizeScale * 0.7, 0), ZIndex = z, }, parent) table.insert(logoParts, { img, mono }) return img end local resolveLogo -- assigned after notify exists ---------------------------------------------------------------------------- -- Build the GUI ---------------------------------------------------------------------------- local old = PlayerGui:FindFirstChild("ForgeAnemo") if old then old:Destroy() end local gui = new("ScreenGui", { Name = "ForgeAnemo", ResetOnSpawn = false, IgnoreGuiInset = true, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, DisplayOrder = 100, }, PlayerGui) local main = new("Frame", { Name = "Main", AnchorPoint = Vector2.new(0.5, 0.5), Size = UDim2.new(0, WIN_W, 0, 0), Position = UDim2.new(0.5, 0, 0.5, 0), BackgroundColor3 = COLORS.Background, ClipsDescendants = true, Visible = false, }, gui) corner(main, UDim.new(0, 14)) fx.mainStroke = stroke(main, COLORS.Accent, 1.5) fx.mainGrad = new("UIGradient", { Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(70, 70, 70)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255)), }), }, fx.mainStroke) bindAccent(function(c) fx.mainStroke.Color = c end) new("UIGradient", { Color = ColorSequence.new(Color3.fromRGB(255, 255, 255), Color3.fromRGB(185, 185, 195)), Rotation = 90, }, main) local uiScale = new("UIScale", {}, main) local function updateScale() local vp = viewportSize() local fit = math.min(vp.X / (WIN_W + 24), vp.Y / (WIN_H + 24)) uiScale.Scale = math.clamp(math.min(fit, scaleMul), 0.5, 1.25) end updateScale() if workspace.CurrentCamera then track(workspace.CurrentCamera:GetPropertyChangedSignal("ViewportSize"):Connect(updateScale)) end -- Top bar (rounded top corners; filler squares off the bottom ones) local topbar = new("Frame", { Name = "Topbar", Size = UDim2.new(1, 0, 0, TOP_H), BackgroundColor3 = COLORS.Panel, BorderSizePixel = 0, }, main) corner(topbar, UDim.new(0, 14)) new("UIGradient", { Color = ColorSequence.new(Color3.fromRGB(255, 255, 255), Color3.fromRGB(165, 165, 165)), Rotation = 90, }, topbar) local topFiller = new("Frame", { Size = UDim2.new(1, 0, 0, 14), Position = UDim2.new(0, 0, 1, -14), BackgroundColor3 = COLORS.Panel, BorderSizePixel = 0, }, topbar) new("UIGradient", { Color = ColorSequence.new(Color3.fromRGB(165, 165, 165), Color3.fromRGB(165, 165, 165)), }, topFiller) local accentLine = new("Frame", { Name = "AccentLine", Size = UDim2.new(1, 0, 0, 2), Position = UDim2.new(0, 0, 1, -2), BackgroundColor3 = COLORS.Accent, BorderSizePixel = 0, }, topbar) bindAccent(function(c) accentLine.BackgroundColor3 = c end) fx.lineGrad = new("UIGradient", { Transparency = NumberSequence.new({ NumberSequenceKeypoint.new(0, 0.8), NumberSequenceKeypoint.new(0.5, 0), NumberSequenceKeypoint.new(1, 0.8), }), }, accentLine) -- Logo medallion local logoHolder = new("Frame", { Name = "LogoHolder", Size = UDim2.new(0, 38, 0, 38), Position = UDim2.new(0, 12, 0.5, -19), BackgroundColor3 = COLORS.Background, }, topbar) corner(logoHolder, UDim.new(1, 0)) local logoRing = stroke(logoHolder, COLORS.Accent, 2) bindAccent(function(c) logoRing.Color = c end) fx.ringGrad = new("UIGradient", { Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(90, 90, 90)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255)), }), }, logoRing) attachLogo(logoHolder, 0.86, 3) new("TextLabel", { Text = "Forge - Anemo", Font = Enum.Font.GothamBold, TextSize = 17, TextColor3 = COLORS.Text, BackgroundTransparency = 1, TextXAlignment = Enum.TextXAlignment.Left, Size = UDim2.new(1, -120, 0, 22), Position = UDim2.new(0, 58, 0, 9), }, topbar) new("TextLabel", { Text = "Emotes | Animation packs | Extras", Font = Enum.Font.Gotham, TextSize = 11, TextColor3 = COLORS.SubText, BackgroundTransparency = 1, TextXAlignment = Enum.TextXAlignment.Left, Size = UDim2.new(1, -120, 0, 14), Position = UDim2.new(0, 58, 0, 31), }, topbar) local closeBtn = makeButton(topbar, "X", UDim2.new(0, 30, 0, 30), UDim2.new(1, -42, 0.5, -15)) closeBtn.Font = Enum.Font.GothamBold local body = new("Frame", { Name = "Body", BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, -TOP_H), Position = UDim2.new(0, 0, 0, TOP_H), }, main) local tabBar = new("Frame", { Size = UDim2.new(1, -20, 0, 32), Position = UDim2.new(0, 10, 0, 10), BackgroundTransparency = 1, }, body) new("UIListLayout", { FillDirection = Enum.FillDirection.Horizontal, Padding = UDim.new(0, 6) }, tabBar) local pages = new("Frame", { Size = UDim2.new(1, -20, 1, -86), Position = UDim2.new(0, 10, 0, 50), BackgroundTransparency = 1, }, body) new("Frame", { Size = UDim2.new(1, 0, 0, 1), Position = UDim2.new(0, 0, 1, -28), BackgroundColor3 = COLORS.Stroke, BorderSizePixel = 0, }, body) local status = new("TextLabel", { Text = "Ready.", Font = Enum.Font.Gotham, TextSize = 12, TextColor3 = COLORS.SubText, BackgroundTransparency = 1, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd, Size = UDim2.new(1, -34, 0, 22), Position = UDim2.new(0, 24, 1, -25), }, body) local statusDot = new("Frame", { Size = UDim2.new(0, 6, 0, 6), Position = UDim2.new(0, 11, 1, -17), BackgroundColor3 = COLORS.Accent, BorderSizePixel = 0, }, body) corner(statusDot, UDim.new(1, 0)) bindAccent(function(c) statusDot.BackgroundColor3 = c end) local statusToken = 0 local function notify(msg) statusToken += 1 local mine = statusToken status.Text = msg status.TextColor3 = COLORS.Text tween(status, TWEEN_MED, { TextColor3 = COLORS.SubText }) task.delay(5, function() if statusToken == mine and status.Parent then status.Text = "Ready." end end) end resolveLogo = function() local found for _, url in ipairs(LOGO_CANDIDATES) do local probe = Instance.new("ImageLabel") probe.Image = url local ok = false pcall(function() ContentProvider:PreloadAsync({ probe }, function(_, status) if status == Enum.AssetFetchStatus.Success then ok = true end end) end) probe:Destroy() if ok then found = url; break end end for _, part in ipairs(logoParts) do if not part[1].Parent then continue end if found then part[1].Image = found part[1].Visible = true part[2].Visible = false else part[1].Visible = false part[2].Visible = true end end if not found then warn("[Forge - Anemo] Logo asset " .. LOGO_ASSET .. " could not be loaded; showing monogram instead.") notify("Logo image unavailable, showing monogram.") end end ---------------------------------------------------------------------------- -- Floating logo bubble (tap = toggle window, drag = move) ---------------------------------------------------------------------------- local bubbleSize = SIZES[2][2] local bubble = new("TextButton", { Name = "Bubble", Text = "", AutoButtonColor = false, Size = UDim2.fromOffset(bubbleSize, bubbleSize), Position = UDim2.new(0, 16, 0.5, -bubbleSize / 2), BackgroundColor3 = COLORS.Background, ZIndex = 5, }, gui) corner(bubble, UDim.new(1, 0)) local bubbleStroke = stroke(bubble, COLORS.SubText, 2) fx.bubbleGrad = new("UIGradient", { Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(110, 110, 110)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255)), }), }, bubbleStroke) fx.bubbleScale = new("UIScale", {}, bubble) attachLogo(bubble, 0.84, 6) local isOpen = false local function setOpen(open) isOpen = open tween(bubbleStroke, TWEEN_FAST, { Color = open and COLORS.Accent or COLORS.SubText }) if fx.enabled then fx.bubbleScale.Scale = 0.82 tween(fx.bubbleScale, TWEEN_SPRING, { Scale = 1 }) end if open then main.Visible = true main.Size = UDim2.new(0, WIN_W, 0, 0) tween(main, fx.enabled and fx.openInfo or TWEEN_MED, { Size = UDim2.new(0, WIN_W, 0, WIN_H) }) else tween(main, TWEEN_MED, { Size = UDim2.new(0, WIN_W, 0, 0) }) task.delay(0.27, function() if not isOpen and main.Parent then main.Visible = false end end) end end bindAccent(function(c) if isOpen then bubbleStroke.Color = c end end) do local dragging, moved, dragStart, startPos = false, false, Vector2.zero, Vector2.zero track(bubble.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging, moved = true, false dragStart = Vector2.new(input.Position.X, input.Position.Y) startPos = bubble.AbsolutePosition end end)) track(UserInputService.InputChanged:Connect(function(input) if not dragging then return end if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then local delta = Vector2.new(input.Position.X, input.Position.Y) - dragStart if delta.Magnitude > 6 then moved = true end if moved then local vp = viewportSize() local x = math.clamp(startPos.X + delta.X, 0, vp.X - bubble.AbsoluteSize.X) local y = math.clamp(startPos.Y + delta.Y, 0, vp.Y - bubble.AbsoluteSize.Y) bubble.Position = UDim2.fromOffset(x, y) end end end)) track(UserInputService.InputEnded:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then dragging = false if not moved then setOpen(not isOpen) end end end)) track(bubble.MouseEnter:Connect(function() tween(bubble, TWEEN_FAST, { BackgroundColor3 = COLORS.Element }) end)) track(bubble.MouseLeave:Connect(function() tween(bubble, TWEEN_FAST, { BackgroundColor3 = COLORS.Background }) end)) end ---------------------------------------------------------------------------- -- Tabs ---------------------------------------------------------------------------- local tabButtons, tabPages, firstShow, shown = {}, {}, {}, {} local currentTab = nil local function selectTab(name) local prevTab = currentTab currentTab = name for tabName, btn in pairs(tabButtons) do local active = tabName == name btn:SetAttribute("Active", active) tween(btn, TWEEN_FAST, { BackgroundColor3 = active and COLORS.Accent or COLORS.Element, TextColor3 = active and COLORS.Background or COLORS.Text, }) tabPages[tabName].Visible = active end if fx.enabled and prevTab and prevTab ~= name then local page = tabPages[name] page.Position = UDim2.fromOffset(16, 0) tween(page, TWEEN_MED, { Position = UDim2.new() }) end if not shown[name] then shown[name] = true if firstShow[name] then task.spawn(firstShow[name]) end end end local function createTab(name) local btn = makeButton(tabBar, name, UDim2.new(1 / 4, -5, 1, 0)) btn.Font = Enum.Font.GothamBold local c = btn:FindFirstChildOfClass("UICorner") if c then c.CornerRadius = UDim.new(1, 0); cornerBase[c] = UDim.new(1, 0) end local page = new("Frame", { Name = name, Size = UDim2.new(1, 0, 1, 0), BackgroundTransparency = 1, Visible = false, }, pages) tabButtons[name], tabPages[name] = btn, page track(btn.MouseButton1Click:Connect(function() selectTab(name) end)) return page end local catalogPage = createTab("Catalog") local animPage = createTab("Animations") local extraPage = createTab("Extra") local settingsPage = createTab("Settings") bindAccent(function() if currentTab then selectTab(currentTab) end end) ---------------------------------------------------------------------------- -- Character helpers ---------------------------------------------------------------------------- local function getHumanoid() local char = LocalPlayer.Character local hum = char and char:FindFirstChildOfClass("Humanoid") if hum and hum.Health > 0 then return hum end return nil end local function stopAnimation() if currentEmoteTrack then local old = currentEmoteTrack currentEmoteTrack = nil pcall(function() old:Stop(0); old:Destroy() end) return true end return false end -- Cached Animation instances so a click never has to build/load anything first local function getEmoteAnimation(assetId) local anim = animCache[assetId] if not anim then anim = Instance.new("Animation") anim.AnimationId = "rbxassetid://" .. assetId animCache[assetId] = anim end return anim end -- Preload a batch of emote animations in the background (called when results appear) local function preloadEmotes(ids) local list = {} for _, id in ipairs(ids) do table.insert(list, getEmoteAnimation(id)) end task.spawn(function() pcall(function() ContentProvider:PreloadAsync(list) end) end) end -- Fallback: Roblox's own emote loader (still plays on our own Animator) local function playEmoteFallback(hum, assetId, label) local ok, played, track2 = pcall(function() return hum:PlayEmoteAndGetAnimTrackById(assetId) end) if ok and played and track2 then currentEmoteTrack = track2 notify("Playing: " .. label) track2.Stopped:Connect(function() if currentEmoteTrack == track2 then currentEmoteTrack = nil end end) else notify(label .. " could not be played (R15 only, may need ownership).") end end -- Roblox-made default emotes (from Roblox's own Animate script, always available) local ROBLOX_EMOTES = { { id = 507770239, label = "Roblox: Wave" }, { id = 507770453, label = "Roblox: Point" }, { id = 507771019, label = "Roblox: Dance" }, { id = 507776043, label = "Roblox: Dance 2" }, { id = 507777268, label = "Roblox: Dance 3" }, { id = 507770818, label = "Roblox: Laugh" }, { id = 507770677, label = "Roblox: Cheer" }, } -- Plays a catalog emote on the local Animator. Switching is instant: the previous -- track is stopped with 0 fade and destroyed, the new one plays at Action4 with 0 fade-in. local function playCatalogEmote(assetId, label) if currentEmoteTrack then pcall(function() currentEmoteTrack:Stop(0); currentEmoteTrack:Destroy() end) currentEmoteTrack = nil end local hum = getHumanoid() if not hum then notify("No living character found."); return end local animator = hum:FindFirstChildOfClass("Animator") if not animator then notify("No Animator found on your character."); return end local ok, newTrack = pcall(function() return animator:LoadAnimation(getEmoteAnimation(assetId)) end) if not ok or not newTrack then playEmoteFallback(hum, assetId, label) return end newTrack.Priority = Enum.AnimationPriority.Action4 currentEmoteTrack = newTrack newTrack:Play(0) notify("Playing: " .. label) newTrack.Stopped:Connect(function() if currentEmoteTrack == newTrack then currentEmoteTrack = nil end pcall(function() newTrack:Destroy() end) end) -- Watchdog: if the asset never loads (not directly playable), use the fallback loader task.delay(3, function() if currentEmoteTrack == newTrack and newTrack.Length == 0 then pcall(function() newTrack:Stop(0); newTrack:Destroy() end) currentEmoteTrack = nil if hum.Parent then playEmoteFallback(hum, assetId, label) end end end) end ---------------------------------------------------------------------------- -- Official Roblox R15 animation packs (built in, no web lookups) -- Source: Roblox Creator Docs, "Use animations" > Catalog animations. -- idle = { Animation1, Animation2 } for the Animate script. ---------------------------------------------------------------------------- local PACKS = { Astronaut = { idle = { 891621366, 891633237 }, walk = 891636393, run = 891636393, jump = 891627522, fall = 891617961, climb = 891609353, swim = 891639666, swimidle = 891663592 }, Bubbly = { idle = { 910004836, 910009958 }, walk = 910034870, run = 910025107, jump = 910016857, fall = 910001910, climb = 909997997, swim = 910028158, swimidle = 910030921 }, Cartoony = { idle = { 742637544, 742638445 }, walk = 742640026, run = 742638842, jump = 742637942, fall = 742637151, climb = 742636889, swim = 742639220, swimidle = 742639812 }, Elder = { idle = { 845397899, 845400520 }, walk = 845403856, run = 845386501, jump = 845398858, fall = 845396048, climb = 845392038, swim = 845401742, swimidle = 845403127 }, Knight = { idle = { 657595757, 657568135 }, walk = 657552124, run = 657564596, jump = 658409194, fall = 657600338, climb = 658360781, swim = 657560551, swimidle = 657557095 }, Levitation = { idle = { 616006778, 616008087 }, walk = 616013216, run = 616010382, jump = 616008936, fall = 616005863, climb = 616003713, swim = 616011509, swimidle = 616012453 }, Mage = { idle = { 707742142, 707855907 }, walk = 707897309, run = 707861613, jump = 707853694, fall = 707829716, climb = 707826056, swim = 707876443, swimidle = 707894699 }, Ninja = { idle = { 656117400, 656118341 }, walk = 656121766, run = 656118852, jump = 656117878, fall = 656115606, climb = 656114359, swim = 656119721, swimidle = 656121397 }, Oldschool = { idle = { 5319828216, 5319831086 }, walk = 5319847204, run = 5319844329, jump = 5319841935, fall = 5319839762, climb = 5319816685 }, -- no swim IDs verified: swim keeps your default Pirate = { idle = { 750781874, 750782770 }, walk = 750785693, run = 750783738, jump = 750782230, fall = 750780242, climb = 750779899, swim = 750784579, swimidle = 750785176 }, Robot = { idle = { 616088211, 616089559 }, walk = 616095330, run = 616091570, jump = 616090535, fall = 616087089, climb = 616086039, swim = 616092998, swimidle = 616094091 }, Rthro = { idle = { 2510197257, 2510196951 }, walk = 2510202577, run = 2510198475, jump = 2510197830, fall = 2510195892, climb = 2510192778, swim = 2510199791, swimidle = 2510201162 }, Stylish = { idle = { 616136790, 616138447 }, walk = 616146177, run = 616140816, jump = 616139451, fall = 616134815, climb = 616133594, swim = 616143378, swimidle = 616144772 }, Superhero = { idle = { 616111295, 616113536 }, walk = 616122287, run = 616117076, jump = 616115533, fall = 616108001, climb = 616104706, swim = 616119360, swimidle = 616120861 }, Toy = { idle = { 782841498, 782845736 }, walk = 782843345, run = 782842708, jump = 782847020, fall = 782846423, climb = 782843869, swim = 782844582, swimidle = 782845186 }, Vampire = { idle = { 1083445855, 1083450166 }, walk = 1083473930, run = 1083462077, jump = 1083455352, fall = 1083443587, climb = 1083439238, swim = 1083464683, swimidle = 1083467779 }, Werewolf = { idle = { 1083195517, 1083214717 }, walk = 1083178339, run = 1083216690, jump = 1083218792, fall = 1083189019, climb = 1083182000, swim = 1083222527, swimidle = 1083225406 }, Zombie = { idle = { 616158929, 616160636 }, walk = 616168032, run = 616163682, jump = 616161997, fall = 616157476, climb = 616156119, swim = 616165109, swimidle = 616166655 }, } -- "Default" is special: it restores whatever your character's Animate script had originally local PACK_NAMES = {} for name in pairs(PACKS) do table.insert(PACK_NAMES, name) end table.sort(PACK_NAMES) table.insert(PACK_NAMES, 1, "Default") ---------------------------------------------------------------------------- -- Apply packs through the character's Animate script ---------------------------------------------------------------------------- local function getAnimate() local char = LocalPlayer.Character return char and char:FindFirstChild("Animate") end -- Stop every playing track, then toggle Animate off/on so it re-reads the new IDs local function restartAnimate(animate) pcall(function() local hum = getHumanoid() local animator = hum and hum:FindFirstChildOfClass("Animator") if animator then for _, t in ipairs(animator:GetPlayingAnimationTracks()) do t:Stop(0) end end currentEmoteTrack = nil animate.Disabled = true task.wait(0.1) animate.Disabled = false end) end -- Which Animate-script animations each slot controls local SLOT_ORDER = { "idle", "walk", "run", "jump", "fall", "climb", "swim", "swimidle" } local SLOT_LABELS = { idle = "Idle", walk = "Walk", run = "Run", jump = "Jump", fall = "Fall", climb = "Climb", swim = "Swim", swimidle = "Swim idle", } local SLOT_TARGETS = { idle = { { "idle", "Animation1" }, { "idle", "Animation2" } }, walk = { { "walk", "WalkAnim" } }, run = { { "run", "RunAnim" } }, jump = { { "jump", "JumpAnim" } }, fall = { { "fall", "FallAnim" } }, climb = { { "climb", "ClimbAnim" } }, swim = { { "swim", "Swim" } }, swimidle = { { "swimidle", "SwimIdle" }, { "swim", "SwimIdle" } }, -- 2nd only exists in some versions } local slotOverrides = {} -- [slot] = id (number) or { id1, id2 } for idle; layered on top of the pack local function setAnimId(animate, folderName, animName, id) if typeof(id) ~= "number" then return 0 end local folder = animate:FindFirstChild(folderName) local anim = folder and folder:FindFirstChild(animName) if anim and anim:IsA("Animation") then if originalIds[anim] == nil then originalIds[anim] = anim.AnimationId end anim.AnimationId = "rbxassetid://" .. id return 1 end return 0 end -- value: a number, or a table { a, b } (idle has two animations) local function writeSlot(animate, slot, value) local targets = SLOT_TARGETS[slot] if not targets or value == nil then return 0 end local count = 0 for i, target in ipairs(targets) do local id = value if typeof(value) == "table" then id = value[i] or value[1] end count += setAnimId(animate, target[1], target[2], id) end return count end local function restoreOriginals() local restored = 0 for anim, original in pairs(originalIds) do if anim.Parent then anim.AnimationId = original restored += 1 end end return restored end -- Rebuilds the animations from scratch: originals -> selected pack -> per-slot overrides local function applyAll() local animate = getAnimate() if not animate then return 0 end restoreOriginals() local count = 0 if selectedPack then for _, slot in ipairs(SLOT_ORDER) do count += writeSlot(animate, slot, selectedPack[slot]) end end for slot, value in pairs(slotOverrides) do count += writeSlot(animate, slot, value) end restartAnimate(animate) return count end local function resetLocalAnimations() local animate = getAnimate() local restored = restoreOriginals() originalIds = {} selectedPack = nil slotOverrides = {} if animate and restored > 0 then restartAnimate(animate) end return restored end local activePackName = "Default" local refreshPackMarks = function() end local refreshSlotMarks = function() end local function selectPackInner(name) if name == "Default" then local restored = resetLocalAnimations() activePackName = "Default" notify(restored > 0 and "Animations reset to default." or "Animations are already default.") return end local pack = PACKS[name] local hum = getHumanoid() if not pack then return end if not hum then notify("No living character found."); return end if hum.RigType ~= Enum.HumanoidRigType.R15 then notify("Your character is R6. These R15 packs can't apply to it.") return end local animate = getAnimate() if not animate then notify("No Animate script on your character (this game uses custom animations).") return end selectedPack = pack slotOverrides = {} local n = applyAll() if n > 0 then activePackName = name notify("Applied " .. name .. " animations.") else notify("This game's Animate script has an unexpected layout.") end end local function selectPack(name) if packBusy then return end packBusy = true local ok, err = pcall(selectPackInner, name) if not ok then warn("[Forge - Anemo] Applying pack failed: " .. tostring(err)) notify("Could not apply that pack.") end refreshPackMarks() refreshSlotMarks() packBusy = false end ---------------------------------------------------------------------------- -- Per-slot custom animations (idle / walk / run / jump / ... from any ID or pack) ---------------------------------------------------------------------------- local function parseAnimId(text) local digits = tostring(text):match("(%d+)") if digits and #digits >= 5 then return tonumber(digits) end return nil end -- false only when Roblox explicitly reports the asset can't be fetched local function animationLoads(id) local anim = Instance.new("Animation") anim.AnimationId = "rbxassetid://" .. id local ok = true pcall(function() ContentProvider:PreloadAsync({ anim }, function(_, status) if status == Enum.AssetFetchStatus.Failure or status == Enum.AssetFetchStatus.TimedOut then ok = false end end) end) anim:Destroy() return ok end local function setSlot(slot, value, message) if packBusy then return end packBusy = true local ok, err = pcall(function() if not getHumanoid() then notify("No living character found."); return end if not getAnimate() then notify("No Animate script on your character."); return end local previous = slotOverrides[slot] slotOverrides[slot] = value if applyAll() > 0 then notify(message) else slotOverrides[slot] = previous notify("Couldn't find the " .. SLOT_LABELS[slot] .. " slot in your Animate script.") end end) if not ok then warn("[Forge - Anemo] Setting slot failed: " .. tostring(err)) notify("Could not apply that animation.") end refreshSlotMarks() packBusy = false end local function clearSlot(slot) if packBusy then return end packBusy = true pcall(function() if slot == nil then slotOverrides = {} else slotOverrides[slot] = nil end if getAnimate() then applyAll() end notify(slot and (SLOT_LABELS[slot] .. " slot reset.") or "All custom slots reset.") end) refreshSlotMarks() packBusy = false end ---------------------------------------------------------------------------- -- Reusable catalog browser (Catalog + Animations tabs) ---------------------------------------------------------------------------- -- opts: placeholder, itemType (Enum.AvatarItemType), makeParams(keyword), onSelect(id, label), -- onItemsAdded(ids) (optional), prefix() -> { {id=, label=} } (optional), extras = { {text=, callback=}, ... } local function createBrowser(page, opts) local search = makeTextBox(page, opts.placeholder, UDim2.new(1, -96, 0, 30)) local go = makeButton(page, "Search", UDim2.new(0, 88, 0, 30), UDim2.new(1, -88, 0, 0)) local n = #opts.extras for i, extra in ipairs(opts.extras) do local b = makeButton(page, extra.text, UDim2.new(1 / n, -6 * (n - 1) / n, 0, 30), UDim2.new((i - 1) / n, 6 * (i - 1) / n, 0, 36)) if extra.onCreated then extra.onCreated(b) end track(b.MouseButton1Click:Connect(extra.callback)) end local list = makeScroller(page, UDim2.new(1, 0, 1, -72), UDim2.new(0, 0, 0, 72)) new("UIGridLayout", { CellSize = UDim2.new(0.5, -4, 0, 34), CellPadding = UDim2.new(0, 6, 0, 6), SortOrder = Enum.SortOrder.LayoutOrder, }, list) local loadMore = makeButton(list, "Load more...", UDim2.new()) loadMore.LayoutOrder = 1000000 loadMore.Visible = false local pagesObj, busy, order = nil, false, 0 local function clearItems() for _, child in ipairs(list:GetChildren()) do if child:IsA("TextButton") and child ~= loadMore then child:Destroy() end end order = 0 end local function addItems(items) local ids = {} for _, item in ipairs(items) do if item.Id then table.insert(ids, item.Id) end end if #ids == 0 then return end if opts.onItemsAdded then opts.onItemsAdded(ids) end local names = {} local ok, details = pcall(function() return AvatarEditorService:GetBatchItemDetails(ids, opts.itemType) end) if ok and typeof(details) == "table" then for _, d in ipairs(details) do names[d.Id] = d.Name end end for _, id in ipairs(ids) do local label = names[id] or ("Item " .. id) local btn = makeButton(list, label, UDim2.new()) order += 1 btn.LayoutOrder = order track(btn.MouseButton1Click:Connect(function() opts.onSelect(id, label) end)) end end local function refreshLoadMore() loadMore.Visible = pagesObj ~= nil and not pagesObj.IsFinished end local function runSearch() if busy then return end busy = true notify("Searching...") local ok, result = pcall(function() return AvatarEditorService:SearchCatalog(opts.makeParams(search.Text)) end) if not ok or not result then notify("Catalog search failed. Try again shortly.") busy = false return end pagesObj = result clearItems() -- built-in entries shown above the results (e.g. Roblox-made emotes) if opts.prefix then local pre, preIds = opts.prefix(), {} for i, item in ipairs(pre) do local pbtn = makeButton(list, item.label, UDim2.new()) pbtn.LayoutOrder = -1000 + i table.insert(preIds, item.id) track(pbtn.MouseButton1Click:Connect(function() opts.onSelect(item.id, item.label) end)) end if opts.onItemsAdded and #preIds > 0 then opts.onItemsAdded(preIds) end end local okPage, pageItems = pcall(function() return result:GetCurrentPage() end) if okPage and typeof(pageItems) == "table" and #pageItems > 0 then addItems(pageItems) notify("Found " .. #pageItems .. " results.") else notify("No results.") end refreshLoadMore() busy = false end track(go.MouseButton1Click:Connect(runSearch)) track(search.FocusLost:Connect(function(enterPressed) if enterPressed then runSearch() end end)) track(loadMore.MouseButton1Click:Connect(function() if busy or not pagesObj or pagesObj.IsFinished then return end busy = true local ok = pcall(function() pagesObj:AdvanceToNextPageAsync() end) if ok then local okPage, pageItems = pcall(function() return pagesObj:GetCurrentPage() end) if okPage and typeof(pageItems) == "table" then addItems(pageItems) end else notify("Could not load more.") end refreshLoadMore() busy = false end)) return runSearch end -- Catalog tab: emotes (with a "Roblox only" filter + built-in Roblox-made emotes) local robloxOnly = false local robloxBtn local runCatalogSearch local function refreshRobloxBtn() if not robloxBtn then return end robloxBtn.Text = "Roblox-made only: " .. (robloxOnly and "On" or "Off") robloxBtn:SetAttribute("Active", robloxOnly) robloxBtn.BackgroundColor3 = robloxOnly and COLORS.Accent or COLORS.Element robloxBtn.TextColor3 = robloxOnly and COLORS.Background or COLORS.Text end runCatalogSearch = createBrowser(catalogPage, { placeholder = "Search catalog emotes...", itemType = Enum.AvatarItemType.Asset, makeParams = function(keyword) local params = CatalogSearchParams.new() params.SearchKeyword = keyword params.AssetTypes = { Enum.AvatarAssetType.EmoteAnimation } params.SortType = Enum.CatalogSortType.Relevance params.SalesTypeFilter = Enum.SalesTypeFilter.All pcall(function() params.IncludeOffSale = true end) if robloxOnly then pcall(function() params.CreatorName = "Roblox" end) end return params end, prefix = function() return robloxOnly and ROBLOX_EMOTES or {} end, onSelect = playCatalogEmote, onItemsAdded = preloadEmotes, extras = { { text = "Stop emote", callback = function() notify(stopAnimation() and "Emote stopped." or "Nothing is playing.") end }, { text = "Roblox-made only: Off", onCreated = function(b) robloxBtn = b end, callback = function() robloxOnly = not robloxOnly refreshRobloxBtn() if runCatalogSearch then task.spawn(runCatalogSearch) end end }, }, }) firstShow["Catalog"] = runCatalogSearch bindAccent(refreshRobloxBtn) -- Animations tab: built-in official packs (no AvatarEditorService) local function createPackList(page) local search = makeTextBox(page, "Filter animation packs...", UDim2.new(1, 0, 0, 30)) local resetBtn = makeButton(page, "Reset animations", UDim2.new(1, 0, 0, 30), UDim2.new(0, 0, 0, 36)) track(resetBtn.MouseButton1Click:Connect(function() selectPack("Default") end)) local list = makeScroller(page, UDim2.new(1, 0, 1, -72), UDim2.new(0, 0, 0, 72)) new("UIGridLayout", { CellSize = UDim2.new(0.5, -4, 0, 34), CellPadding = UDim2.new(0, 6, 0, 6), SortOrder = Enum.SortOrder.LayoutOrder, }, list) local buttons = {} for i, name in ipairs(PACK_NAMES) do local btn = makeButton(list, name, UDim2.new()) btn.LayoutOrder = i buttons[name] = btn track(btn.MouseButton1Click:Connect(function() selectPack(name) end)) end refreshPackMarks = function() for name, btn in pairs(buttons) do local on = name == activePackName btn.TextColor3 = on and COLORS.Accent or COLORS.Text btn.Font = on and Enum.Font.GothamBold or Enum.Font.GothamMedium end end bindAccent(function() refreshPackMarks() end) track(search:GetPropertyChangedSignal("Text"):Connect(function() local q = search.Text:lower() for name, btn in pairs(buttons) do btn.Visible = q == "" or name:lower():find(q, 1, true) ~= nil end end)) end -- Animations tab: per-slot editor local function createSlotEditor(page) local chosen = "idle" local chips = {} local chipFrame = new("Frame", { Size = UDim2.new(1, 0, 0, 62), BackgroundTransparency = 1 }, page) new("UIGridLayout", { CellSize = UDim2.new(0.25, -5, 0, 28), CellPadding = UDim2.new(0, 6, 0, 6), SortOrder = Enum.SortOrder.LayoutOrder, }, chipFrame) local hint = new("TextLabel", { Text = "", Font = Enum.Font.Gotham, TextSize = 11, TextColor3 = COLORS.SubText, BackgroundTransparency = 1, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd, Size = UDim2.new(1, 0, 0, 16), Position = UDim2.new(0, 2, 0, 140), }, page) local function refreshChips() for slot, chip in pairs(chips) do local active = slot == chosen chip:SetAttribute("Active", active) chip.BackgroundColor3 = active and COLORS.Accent or COLORS.Element if active then chip.TextColor3 = COLORS.Background else chip.TextColor3 = slotOverrides[slot] and COLORS.Accent or COLORS.Text end end hint.Text = "Or tap a pack to use only its " .. SLOT_LABELS[chosen]:lower() .. " animation:" end refreshSlotMarks = refreshChips for i, slot in ipairs(SLOT_ORDER) do local chip = makeButton(chipFrame, SLOT_LABELS[slot], UDim2.new()) chip.TextSize = 12 chip.LayoutOrder = i chips[slot] = chip track(chip.MouseButton1Click:Connect(function() chosen = slot refreshChips() end)) end local idBox = makeTextBox(page, "Animation ID (numbers)...", UDim2.new(1, -96, 0, 30), UDim2.new(0, 0, 0, 68)) local applyBtn = makeButton(page, "Apply", UDim2.new(0, 88, 0, 30), UDim2.new(1, -88, 0, 68)) local resetSlotBtn = makeButton(page, "Reset slot", UDim2.new(0.5, -3, 0, 30), UDim2.new(0, 0, 0, 104)) local resetAllBtn = makeButton(page, "Reset all slots", UDim2.new(0.5, -3, 0, 30), UDim2.new(0.5, 3, 0, 104)) local function applyCustom() local id = parseAnimId(idBox.Text) if not id then notify("Enter a valid animation ID (numbers only)."); return end notify("Checking animation...") if not animationLoads(id) then notify("That animation can't be loaded (wrong ID or not public).") return end setSlot(chosen, id, SLOT_LABELS[chosen] .. " animation set to " .. id .. ".") end track(applyBtn.MouseButton1Click:Connect(applyCustom)) track(idBox.FocusLost:Connect(function(enterPressed) if enterPressed then applyCustom() end end)) track(resetSlotBtn.MouseButton1Click:Connect(function() clearSlot(chosen) end)) track(resetAllBtn.MouseButton1Click:Connect(function() clearSlot(nil) end)) local list = makeScroller(page, UDim2.new(1, 0, 1, -160), UDim2.new(0, 0, 0, 160)) new("UIGridLayout", { CellSize = UDim2.new(0.5, -4, 0, 30), CellPadding = UDim2.new(0, 6, 0, 6), SortOrder = Enum.SortOrder.LayoutOrder, }, list) for i, name in ipairs(PACK_NAMES) do if name ~= "Default" then local btn = makeButton(list, name, UDim2.new()) btn.LayoutOrder = i track(btn.MouseButton1Click:Connect(function() local value = PACKS[name][chosen] if value == nil then notify(name .. " has no " .. SLOT_LABELS[chosen]:lower() .. " animation.") return end setSlot(chosen, value, SLOT_LABELS[chosen] .. " set to " .. name .. ".") end)) end end bindAccent(refreshChips) end -- Mode switch: whole packs vs. per-slot custom local modeBar = new("Frame", { Size = UDim2.new(1, 0, 0, 30), BackgroundTransparency = 1 }, animPage) local modePacks = makeButton(modeBar, "Full packs", UDim2.new(0.5, -3, 1, 0), UDim2.new(0, 0, 0, 0)) local modeSlots = makeButton(modeBar, "Per-slot custom", UDim2.new(0.5, -3, 1, 0), UDim2.new(0.5, 3, 0, 0)) for _, b in ipairs({ modePacks, modeSlots }) do b.Font = Enum.Font.GothamBold local c = b:FindFirstChildOfClass("UICorner") if c then c.CornerRadius = UDim.new(1, 0); cornerBase[c] = UDim.new(1, 0) end end local packsView = new("Frame", { Size = UDim2.new(1, 0, 1, -38), Position = UDim2.new(0, 0, 0, 38), BackgroundTransparency = 1, }, animPage) local slotsView = new("Frame", { Size = UDim2.new(1, 0, 1, -38), Position = UDim2.new(0, 0, 0, 38), BackgroundTransparency = 1, Visible = false, }, animPage) createPackList(packsView) createSlotEditor(slotsView) local animMode = "packs" local function refreshMode() local onPacks = animMode == "packs" packsView.Visible, slotsView.Visible = onPacks, not onPacks for btn, active in pairs({ [modePacks] = onPacks, [modeSlots] = not onPacks }) do btn:SetAttribute("Active", active) btn.BackgroundColor3 = active and COLORS.Accent or COLORS.Element btn.TextColor3 = active and COLORS.Background or COLORS.Text end end track(modePacks.MouseButton1Click:Connect(function() animMode = "packs"; refreshMode() end)) track(modeSlots.MouseButton1Click:Connect(function() animMode = "slots"; refreshMode() end)) bindAccent(refreshMode) local extraCleanup -- assigned inside the Extra block below do ---------------------------------------------------------------------------- -- Extra tab: Headless + Korblox toggles and a read-only Remote Inspector ---------------------------------------------------------------------------- local ReplicatedStorage = game:GetService("ReplicatedStorage") local KORBLOX_ASSET_ID = 139607718 -- Korblox Deathspeaker Right Leg local KORBLOX_BUNDLE_ID = 192 -- Korblox Deathspeaker bundle local HEADLESS_ASSET_ID = 134082579 -- Headless Head local HEADLESS_BUNDLE_ID = 201 -- Headless Horseman bundle local R15_RIGHT_LEG = { "RightUpperLeg", "RightLowerLeg", "RightFoot" } -- Headless ------------------------------------------------------------------ local headless = { on = false, conns = {}, saved = {}, enforced = {} } local headlessToken = 0 local function hlDisconnect() for _, c in ipairs(headless.conns) do pcall(function() c:Disconnect() end) end table.clear(headless.conns) table.clear(headless.enforced) end -- Sets a property, remembers the original once, and re-asserts it if the game changes it back local function hlForce(inst, prop, value) local s = headless.saved[inst] if not s then s = {}; headless.saved[inst] = s end if s[prop] == nil then s[prop] = inst[prop] end inst[prop] = value local e = headless.enforced[inst] if not e then e = {}; headless.enforced[inst] = e end if e[prop] then return end e[prop] = true table.insert(headless.conns, inst:GetPropertyChangedSignal(prop):Connect(function() if headless.on and inst[prop] ~= value then inst[prop] = value end end)) end local function hideHeadPiece(inst) if inst:IsA("Decal") or inst:IsA("Texture") then hlForce(inst, "Transparency", 1) -- face decal elseif inst:IsA("SpecialMesh") then hlForce(inst, "Scale", Vector3.zero) -- R6 / classic head mesh elseif inst:IsA("BasePart") then hlForce(inst, "Transparency", 1) -- Head part / MeshPart head end end local function applyHeadless(char) headlessToken += 1 local mine = headlessToken hlDisconnect() local head = char:WaitForChild("Head", 10) if not head or mine ~= headlessToken or not headless.on or LocalPlayer.Character ~= char then return end hideHeadPiece(head) for _, d in ipairs(head:GetDescendants()) do hideHeadPiece(d) end -- face decal / mesh that loads in late table.insert(headless.conns, head.DescendantAdded:Connect(function(d) if headless.on then task.defer(hideHeadPiece, d) end end)) -- the game swapping the whole Head (appearance reload) table.insert(headless.conns, char.ChildAdded:Connect(function(c) if c.Name == "Head" and headless.on then task.defer(applyHeadless, char) end end)) end local function hlForget() -- old character is gone: nothing to restore headlessToken += 1 hlDisconnect() table.clear(headless.saved) end local function restoreHeadless() headlessToken += 1 hlDisconnect() for inst, props in pairs(headless.saved) do for prop, value in pairs(props) do pcall(function() inst[prop] = value end) end end table.clear(headless.saved) end -- Korblox ------------------------------------------------------------------- local korblox = { on = false, template = nil, clones = {}, saved = {}, conns = {} } local korbloxToken = 0 local function loadKorbloxTemplate() if korblox.template then return korblox.template end local model pcall(function() model = game:GetObjects("rbxassetid://" .. KORBLOX_ASSET_ID)[1] end) if not model then pcall(function() model = game:GetService("InsertService"):LoadAsset(KORBLOX_ASSET_ID) end) end korblox.template = model return model end local function collectLegParts(template) local list = template:GetDescendants() table.insert(list, template) local found = {} for _, d in ipairs(list) do if d:IsA("BasePart") and (d.Name == "Right Leg" or table.find(R15_RIGHT_LEG, d.Name)) then found[d.Name] = d end end return found end local function kbDisconnect() for _, c in ipairs(korblox.conns) do pcall(function() c:Disconnect() end) end table.clear(korblox.conns) end local function kbClear(restore) kbDisconnect() for _, c in ipairs(korblox.clones) do pcall(function() c:Destroy() end) end table.clear(korblox.clones) if restore then for part, t in pairs(korblox.saved) do pcall(function() part.Transparency = t end) end end table.clear(korblox.saved) end local function kbHide(part) if korblox.saved[part] == nil then korblox.saved[part] = part.Transparency end part.Transparency = 1 table.insert(korblox.conns, part:GetPropertyChangedSignal("Transparency"):Connect(function() if korblox.on and part.Transparency ~= 1 then part.Transparency = 1 end end)) end -- Clone a Korblox mesh and Weld it to the original (hidden) leg part, which the Motor6D rig -- keeps animating, so the Korblox leg follows every animation/emote. local function attachClone(char, src, orig, offset) local c = src:Clone() for _, d in ipairs(c:GetDescendants()) do if d:IsA("Attachment") or d:IsA("JointInstance") or d:IsA("Constraint") or d:IsA("BaseScript") or d:IsA("WrapTarget") or d:IsA("WrapLayer") or d:IsA("Humanoid") then pcall(function() d:Destroy() end) end end c.Name = "Forge_Korblox_" .. orig.Name c.Anchored, c.CanCollide, c.CanTouch, c.CanQuery, c.Massless = false, false, false, false, true -- keep proportions when the character uses body scaling (R15 MeshParts carry OriginalSize) local osv = orig:FindFirstChild("OriginalSize") if osv and osv:IsA("Vector3Value") and src:IsA("MeshPart") then local base = osv.Value if base.X > 0 and base.Y > 0 and base.Z > 0 then c.Size = src.Size * (orig.Size / base) end end c.CFrame = orig.CFrame * (offset or CFrame.identity) local w = Instance.new("Weld") w.Name = "ForgeKorbloxWeld" w.Part0 = orig w.Part1 = c w.C0 = offset or CFrame.identity w.Parent = c c.Parent = char table.insert(korblox.clones, c) end local function applyKorblox(char) korbloxToken += 1 local mine = korbloxToken kbClear(true) local function stale() return mine ~= korbloxToken or not korblox.on or LocalPlayer.Character ~= char end local hum = char:WaitForChild("Humanoid", 10) if not hum or stale() or not korblox.template then return end local sources = collectLegParts(korblox.template) if not next(sources) then notify("Korblox asset has no leg mesh."); return end if hum.RigType == Enum.HumanoidRigType.R15 then local origs = {} for _, n in ipairs(R15_RIGHT_LEG) do origs[n] = char:WaitForChild(n, 10) end if stale() then return end local hasR15Mesh = sources.RightUpperLeg or sources.RightLowerLeg or sources.RightFoot for _, n in ipairs(R15_RIGHT_LEG) do local orig = origs[n] if orig then kbHide(orig) if hasR15Mesh then if sources[n] then attachClone(char, sources[n], orig) end elseif n == "RightUpperLeg" then -- asset only has the one-piece R6 leg: approximate fit on an R15 rig attachClone(char, sources["Right Leg"], orig, CFrame.new(0, -0.55, 0)) end end end else local orig = char:WaitForChild("Right Leg", 10) if stale() or not orig then return end if not sources["Right Leg"] then notify("Korblox asset has no R6 leg."); return end kbHide(orig) attachClone(char, sources["Right Leg"], orig) end -- the game rebuilding the leg (appearance reload): re-apply table.insert(korblox.conns, char.ChildAdded:Connect(function(c) if korblox.on and (c.Name == "Right Leg" or table.find(R15_RIGHT_LEG, c.Name)) then task.defer(applyKorblox, char) end end)) end extraCleanup = function() headless.on, korblox.on = false, false restoreHeadless() korbloxToken += 1 kbClear(true) end local function setHeadless(on) headless.on = on if on then local char = LocalPlayer.Character if char then task.spawn(applyHeadless, char) end notify("Headless on (client-side visual).") else restoreHeadless() notify("Headless off - head restored.") end return true end local function setKorblox(on) if on then if not loadKorbloxTemplate() then notify("Couldn't load the Korblox asset (GetObjects/LoadAsset blocked here).") return false end korblox.on = true local char = LocalPlayer.Character if char then task.spawn(applyKorblox, char) end notify("Korblox on (client-side visual).") else korblox.on = false korbloxToken += 1 kbClear(true) notify("Korblox off - original leg restored.") end return true end -- Persist across death / respawn track(LocalPlayer.CharacterAdded:Connect(function(char) hlForget() korbloxToken += 1 kbClear(false) -- old clones died with the old character if headless.on then task.spawn(applyHeadless, char) end if korblox.on then task.spawn(applyKorblox, char) end end)) -- Extra tab UI -------------------------------------------------------------- local extraScroll = makeScroller(extraPage, UDim2.new(1, 0, 1, 0), UDim2.new()) new("UIListLayout", { Padding = UDim.new(0, 6), SortOrder = Enum.SortOrder.LayoutOrder }, extraScroll) local function makeToggle(order, title, subtitle, onChange) local btn = makeButton(extraScroll, "", UDim2.new(1, 0, 0, 48)) btn.LayoutOrder = order new("TextLabel", { Text = title, Font = Enum.Font.GothamBold, TextSize = 13, TextColor3 = COLORS.Text, BackgroundTransparency = 1, TextXAlignment = Enum.TextXAlignment.Left, Size = UDim2.new(1, -70, 0, 18), Position = UDim2.new(0, 12, 0, 7), }, btn) new("TextLabel", { Text = subtitle, Font = Enum.Font.Gotham, TextSize = 11, TextColor3 = COLORS.SubText, BackgroundTransparency = 1, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd, Size = UDim2.new(1, -70, 0, 14), Position = UDim2.new(0, 12, 0, 26), }, btn) local trackBar = new("Frame", { Size = UDim2.fromOffset(38, 20), Position = UDim2.new(1, -50, 0.5, -10), BackgroundColor3 = COLORS.Stroke, BorderSizePixel = 0, }, btn) corner(trackBar, UDim.new(1, 0)) local knob = new("Frame", { Size = UDim2.fromOffset(14, 14), Position = UDim2.fromOffset(3, 3), BackgroundColor3 = COLORS.Text, BorderSizePixel = 0, }, trackBar) corner(knob, UDim.new(1, 0)) local state, busy = false, false local function render() tween(trackBar, TWEEN_FAST, { BackgroundColor3 = state and COLORS.Accent or COLORS.Stroke }) tween(knob, fx.enabled and TWEEN_SPRING or TWEEN_FAST, { Position = state and UDim2.fromOffset(21, 3) or UDim2.fromOffset(3, 3) }) end bindAccent(render) track(btn.MouseButton1Click:Connect(function() if busy then return end busy = true local want = not state state = want render() task.spawn(function() local ok, res = pcall(onChange, want) if not ok or res == false then state = not want render() if not ok then warn("[Forge - Anemo] toggle error: " .. tostring(res)) end end busy = false end) end)) return btn end makeToggle(1, "Headless", "Hides head + face. Re-applies after respawn.", setHeadless) makeToggle(2, "Korblox Right Leg", "Deathspeaker leg on your rig, follows animations.", setKorblox) new("TextLabel", { Text = "These are visual and run on your client, so other players only see them if the game's own server code applies them.", Font = Enum.Font.Gotham, TextSize = 12, TextColor3 = COLORS.SubText, BackgroundTransparency = 1, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top, Size = UDim2.new(1, 0, 0, 48), LayoutOrder = 10, }, extraScroll) -- Read-only Remote Inspector ------------------------------------------------- -- Lists RemoteEvent / RemoteFunction NAMES found in ReplicatedStorage. It never fires, -- invokes, connects to or guesses payloads for any remote: it only reads Name and ClassName. local INSPECT_MAX = 150 new("TextLabel", { Text = "Remote Inspector (read-only)", Font = Enum.Font.GothamBold, TextSize = 13, TextColor3 = COLORS.Text, BackgroundTransparency = 1, TextXAlignment = Enum.TextXAlignment.Left, Size = UDim2.new(1, 0, 0, 20), LayoutOrder = 11, }, extraScroll) new("TextLabel", { Text = "Shows the names of RemoteEvents and RemoteFunctions in ReplicatedStorage. Nothing is fired or invoked.", Font = Enum.Font.Gotham, TextSize = 12, TextColor3 = COLORS.SubText, BackgroundTransparency = 1, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top, Size = UDim2.new(1, 0, 0, 32), LayoutOrder = 12, }, extraScroll) local scanBtn = makeButton(extraScroll, "Scan ReplicatedStorage", UDim2.new(1, 0, 0, 34)) scanBtn.LayoutOrder = 13 local countLabel = new("TextLabel", { Text = "Not scanned yet.", Font = Enum.Font.Gotham, TextSize = 11, TextColor3 = COLORS.SubText, BackgroundTransparency = 1, TextXAlignment = Enum.TextXAlignment.Left, Size = UDim2.new(1, 0, 0, 16), LayoutOrder = 14, }, extraScroll) local remoteList = new("Frame", { Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundColor3 = COLORS.Element, BorderSizePixel = 0, LayoutOrder = 15, }, extraScroll) corner(remoteList, UDim.new(0, 9)) stroke(remoteList) new("UIPadding", { PaddingTop = UDim.new(0, 4), PaddingBottom = UDim.new(0, 4), PaddingLeft = UDim.new(0, 8), PaddingRight = UDim.new(0, 8), }, remoteList) new("UIListLayout", { SortOrder = Enum.SortOrder.LayoutOrder }, remoteList) -- tag colour follows the accent without registering a binding per row bindAccent(function(c) for _, row in ipairs(remoteList:GetChildren()) do local tag = row:FindFirstChild("Tag") if tag then tag.TextColor3 = c end end end) local function addRemoteRow(order, name, tagText) local row = new("Frame", { Name = "Row", Size = UDim2.new(1, 0, 0, 22), BackgroundTransparency = 1, LayoutOrder = order, }, remoteList) new("TextLabel", { Text = name, Font = Enum.Font.Gotham, TextSize = 12, TextColor3 = COLORS.Text, BackgroundTransparency = 1, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd, Size = UDim2.new(1, -72, 1, 0), }, row) if tagText then new("TextLabel", { Name = "Tag", Text = tagText, Font = Enum.Font.GothamMedium, TextSize = 11, TextColor3 = COLORS.Accent, BackgroundTransparency = 1, TextXAlignment = Enum.TextXAlignment.Right, Size = UDim2.new(0, 68, 1, 0), Position = UDim2.new(1, -68, 0, 0), }, row) end end local function scanRemotes() for _, child in ipairs(remoteList:GetChildren()) do if child.Name == "Row" then child:Destroy() end end local found = {} local ok = pcall(function() for _, d in ipairs(ReplicatedStorage:GetDescendants()) do if d:IsA("RemoteEvent") then table.insert(found, { name = d.Name, tag = "Event" }) elseif d:IsA("RemoteFunction") then table.insert(found, { name = d.Name, tag = "Function" }) end end end) if not ok then countLabel.Text = "Couldn't read ReplicatedStorage." return end table.sort(found, function(a, b) local an, bn = a.name:lower(), b.name:lower() if an ~= bn then return an < bn end return a.tag < b.tag end) if #found == 0 then countLabel.Text = "0 remotes found." addRemoteRow(1, "No RemoteEvent or RemoteFunction found.") return end local shown = math.min(#found, INSPECT_MAX) for i = 1, shown do addRemoteRow(i, found[i].name, found[i].tag) end if #found > shown then addRemoteRow(shown + 1, "... and " .. (#found - shown) .. " more not shown") countLabel.Text = #found .. " remotes found (showing " .. shown .. ")." else countLabel.Text = #found .. " remote(s) found." end end track(scanBtn.MouseButton1Click:Connect(scanRemotes)) task.spawn(scanRemotes) end ---------------------------------------------------------------------------- -- Settings tab (customisation) ---------------------------------------------------------------------------- local PALETTES = { { "Black", { Background = Color3.fromRGB(10, 10, 10), Panel = Color3.fromRGB(20, 20, 20), Element = Color3.fromRGB(30, 30, 30), Hover = Color3.fromRGB(50, 50, 50), Stroke = Color3.fromRGB(70, 70, 70) } }, { "Graphite", { Background = Color3.fromRGB(24, 24, 27), Panel = Color3.fromRGB(34, 34, 38), Element = Color3.fromRGB(46, 46, 52), Hover = Color3.fromRGB(66, 66, 74), Stroke = Color3.fromRGB(92, 92, 102) } }, { "Midnight", { Background = Color3.fromRGB(8, 10, 20), Panel = Color3.fromRGB(14, 18, 34), Element = Color3.fromRGB(22, 28, 50), Hover = Color3.fromRGB(36, 46, 80), Stroke = Color3.fromRGB(58, 70, 110) } }, { "Forest", { Background = Color3.fromRGB(8, 16, 12), Panel = Color3.fromRGB(14, 26, 20), Element = Color3.fromRGB(22, 40, 30), Hover = Color3.fromRGB(34, 64, 48), Stroke = Color3.fromRGB(56, 96, 74) } }, { "Plum", { Background = Color3.fromRGB(16, 8, 18), Panel = Color3.fromRGB(28, 14, 32), Element = Color3.fromRGB(40, 22, 46), Hover = Color3.fromRGB(62, 36, 72), Stroke = Color3.fromRGB(92, 58, 104) } }, } local PALETTE_KEYS = { "Background", "Panel", "Element", "Hover", "Stroke" } local TOGGLE_KEYS = { Enum.KeyCode.RightControl, Enum.KeyCode.RightShift, Enum.KeyCode.Insert, Enum.KeyCode.K, Enum.KeyCode.Home } local function sameColor(a, b) return math.abs(a.R - b.R) < 0.006 and math.abs(a.G - b.G) < 0.006 and math.abs(a.B - b.B) < 0.006 end -- Re-colours every existing element from the old palette to the new one local function setPalette(pal) local old = {} for _, k in ipairs(PALETTE_KEYS) do old[k] = COLORS[k]; COLORS[k] = pal[k] end local function remap(c) for _, k in ipairs(PALETTE_KEYS) do if sameColor(c, old[k]) then return COLORS[k] end end end local nodes = gui:GetDescendants() table.insert(nodes, gui) for _, d in ipairs(nodes) do if d:IsA("GuiObject") then local n = remap(d.BackgroundColor3) if n then d.BackgroundColor3 = n end elseif d:IsA("UIStroke") then local n = remap(d.Color) if n then d.Color = n end end end end local function applyCorners() for c, base in pairs(cornerBase) do if c.Parent then c.CornerRadius = cornerRadiusFor(base) end end end local settingsScroll = makeScroller(settingsPage, UDim2.new(1, 0, 1, 0), UDim2.new()) new("UIListLayout", { Padding = UDim.new(0, 6), SortOrder = Enum.SortOrder.LayoutOrder }, settingsScroll) local themeIndex, paletteIndex, styleIndex, scaleIndex, sizeIndex, keyIndex = 1, 1, 1, 2, 2, 1 local function settingBtn(order, text) local b = makeButton(settingsScroll, text or "", UDim2.new(1, 0, 0, 34)) b.LayoutOrder = order return b end local accentBtn = settingBtn(1) local paletteBtn = settingBtn(2) local cornerBtn = settingBtn(3) local styleBtn = settingBtn(4) local scaleBtn = settingBtn(5) local sizeBtn = settingBtn(6) local keyBtn = settingBtn(7) fx.btn = settingBtn(8) local resetBtn = settingBtn(9, "Reset window and bubble positions") local unloadBtn = settingBtn(10, "Unload Forge - Anemo") local swatch = new("Frame", { Size = UDim2.new(0, 14, 0, 14), Position = UDim2.new(1, -26, 0.5, -7), BackgroundColor3 = COLORS.Accent, BorderSizePixel = 0, }, accentBtn) corner(swatch, UDim.new(1, 0)) bindAccent(function(c) swatch.BackgroundColor3 = c end) new("TextLabel", { Text = "Tap or drag the logo bubble to open and move the window.\nThe toggle key shows or hides it too.", Font = Enum.Font.Gotham, TextSize = 12, TextColor3 = COLORS.SubText, BackgroundTransparency = 1, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top, Size = UDim2.new(1, 0, 0, 34), LayoutOrder = 11, }, settingsScroll) local function refreshTheme() local th = THEMES[themeIndex] accentBtn.Text = "Accent colour: " .. th[1] setAccent(th[2]) end local function refreshPalette() paletteBtn.Text = "Background: " .. PALETTES[paletteIndex][1] setPalette(PALETTES[paletteIndex][2]) end local function refreshCorners() cornerBtn.Text = "Corners: " .. (sharpCorners and "Sharp" or "Rounded") applyCorners() end local function refreshStyle() local s = STYLES[styleIndex] styleBtn.Text = "Window style: " .. s[1] main.BackgroundTransparency = s[2] topbar.BackgroundTransparency = s[2] topFiller.BackgroundTransparency = s[2] end local function refreshScale() local s = SCALES[scaleIndex] scaleBtn.Text = "Window size: " .. s[1] scaleMul = s[2] updateScale() end local function refreshSize() local s = SIZES[sizeIndex] sizeBtn.Text = "Bubble size: " .. s[1] local center = bubble.AbsolutePosition + bubble.AbsoluteSize / 2 bubbleSize = s[2] bubble.Size = UDim2.fromOffset(bubbleSize, bubbleSize) bubble.Position = UDim2.fromOffset(center.X - bubbleSize / 2, center.Y - bubbleSize / 2) end local function refreshKey() TOGGLE_KEY = TOGGLE_KEYS[keyIndex] keyBtn.Text = "Toggle key: " .. TOGGLE_KEY.Name end track(accentBtn.MouseButton1Click:Connect(function() themeIndex = themeIndex % #THEMES + 1; refreshTheme() end)) track(paletteBtn.MouseButton1Click:Connect(function() paletteIndex = paletteIndex % #PALETTES + 1; refreshPalette() end)) track(cornerBtn.MouseButton1Click:Connect(function() sharpCorners = not sharpCorners; refreshCorners() end)) track(styleBtn.MouseButton1Click:Connect(function() styleIndex = styleIndex % #STYLES + 1; refreshStyle() end)) track(scaleBtn.MouseButton1Click:Connect(function() scaleIndex = scaleIndex % #SCALES + 1; refreshScale() end)) track(sizeBtn.MouseButton1Click:Connect(function() sizeIndex = sizeIndex % #SIZES + 1; refreshSize() end)) track(keyBtn.MouseButton1Click:Connect(function() keyIndex = keyIndex % #TOGGLE_KEYS + 1; refreshKey() end)) track(resetBtn.MouseButton1Click:Connect(function() main.Position = UDim2.new(0.5, 0, 0.5, 0) bubble.Position = UDim2.new(0, 16, 0.5, -bubbleSize / 2) notify("Positions reset.") end)) accentBtn.Text = "Accent colour: " .. THEMES[themeIndex][1] paletteBtn.Text = "Background: " .. PALETTES[paletteIndex][1] cornerBtn.Text = "Corners: Rounded" refreshStyle() scaleBtn.Text = "Window size: " .. SCALES[scaleIndex][1] sizeBtn.Text = "Bubble size: " .. SIZES[sizeIndex][1] refreshKey() local function refreshFx() fx.btn.Text = "Effects: " .. (fx.enabled and "On" or "Off") end track(fx.btn.MouseButton1Click:Connect(function() fx.enabled = not fx.enabled; refreshFx() end)) refreshFx() ---------------------------------------------------------------------------- -- Visual effects: spinning border shine, top-line shimmer, pulsing bubble, wind motes ---------------------------------------------------------------------------- do local fxLayer = new("Frame", { Name = "Fx", BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), ZIndex = 0, }, main) local motes = {} local rng = Random.new(7) for i = 1, 16 do local size = rng:NextInteger(2, 4) local dot = new("Frame", { Size = UDim2.fromOffset(size, size), BackgroundColor3 = COLORS.Accent, BackgroundTransparency = 0.7, BorderSizePixel = 0, ZIndex = 0, }, fxLayer) corner(dot, UDim.new(1, 0)) motes[i] = { dot = dot, x = rng:NextNumber(), phase = rng:NextNumber(), speed = rng:NextNumber(0.03, 0.09), sway = rng:NextNumber(0.01, 0.03), } end bindAccent(function(c) for _, m in ipairs(motes) do m.dot.BackgroundColor3 = c end end) local wasOn = true track(game:GetService("RunService").Heartbeat:Connect(function() if not fx.enabled then if wasOn then wasOn = false fxLayer.Visible = false bubbleStroke.Thickness = 2 statusDot.BackgroundTransparency = 0 fx.lineGrad.Offset = Vector2.zero end return end if not wasOn then wasOn = true; fxLayer.Visible = true end local t = os.clock() fx.bubbleGrad.Rotation = (t * 100) % 360 bubbleStroke.Thickness = isOpen and 2 or (2.4 + 0.8 * math.sin(t * 3)) if not isOpen then return end fx.mainGrad.Rotation = (t * 45) % 360 fx.ringGrad.Rotation = (t * 140) % 360 fx.lineGrad.Offset = Vector2.new(((t * 0.5) % 2) - 1, 0) statusDot.BackgroundTransparency = 0.45 * (0.5 + 0.5 * math.sin(t * 3)) for _, m in ipairs(motes) do local y = 1 - ((t * m.speed + m.phase) % 1) local x = (m.x + math.sin(t * 0.8 + m.phase * 6.28) * m.sway) % 1 m.dot.Position = UDim2.new(x, 0, y, 0) end end)) end ---------------------------------------------------------------------------- -- Character lifecycle (respawns) ---------------------------------------------------------------------------- local runningConn local function onCharacterAdded(char) currentEmoteTrack = nil originalIds = {} -- new character = new Animate script instances if runningConn then runningConn:Disconnect(); runningConn = nil end local hum = char:WaitForChild("Humanoid", 10) if not hum then return end -- Cancel the current emote when the player starts moving runningConn = hum.Running:Connect(function(speed) if speed > 0.5 and currentEmoteTrack then stopAnimation() end end) -- Re-apply the chosen animation pack once the Animate script has loaded if selectedPack or next(slotOverrides) then local animate = char:WaitForChild("Animate", 10) if animate then animate:WaitForChild("idle", 5) task.wait(0.5) if LocalPlayer.Character == char and (selectedPack or next(slotOverrides)) then applyAll() end end end end track(LocalPlayer.CharacterAdded:Connect(onCharacterAdded)) if LocalPlayer.Character then task.spawn(onCharacterAdded, LocalPlayer.Character) end ---------------------------------------------------------------------------- -- Window dragging (mouse + touch) ---------------------------------------------------------------------------- do local dragging, dragStart, startPos track(topbar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging, dragStart, startPos = true, input.Position, main.Position local c; c = input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false c:Disconnect() end end) end end)) track(UserInputService.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local d = input.Position - dragStart main.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + d.X, startPos.Y.Scale, startPos.Y.Offset + d.Y) end end)) end ---------------------------------------------------------------------------- -- Window controls ---------------------------------------------------------------------------- local function destroyGui() stopAnimation() pcall(extraCleanup) for _, c in ipairs(connections) do pcall(function() c:Disconnect() end) end if runningConn then runningConn:Disconnect() end gui:Destroy() end track(closeBtn.MouseButton1Click:Connect(function() setOpen(false) end)) track(unloadBtn.MouseButton1Click:Connect(destroyGui)) track(UserInputService.InputBegan:Connect(function(input, processed) if not processed and input.KeyCode == TOGGLE_KEY then setOpen(not isOpen) end end)) selectTab("Catalog") setOpen(true) notify("Forge - Anemo loaded.") task.spawn(resolveLogo) end -------------------------------------------------------------------------------- -- Entry point -------------------------------------------------------------------------------- runClient()