local Players = game:GetService("Players") local AvatarEditorService = game:GetService("AvatarEditorService") local MarketplaceService = game:GetService("MarketplaceService") local InsertService = game:GetService("InsertService") local HttpService = game:GetService("HttpService") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") local Player = Players.LocalPlayer local PlayerGui = Player:WaitForChild("PlayerGui") if PlayerGui:FindFirstChild("DeltaEmoteCatalog") then PlayerGui.DeltaEmoteCatalog:Destroy() end local req = (syn and syn.request) or (http and http.request) or http_request or request or (fluxus and fluxus.request) local function httpGet(url) if req then local ok, r = pcall(function() return req({Url = url, Method = "GET"}) end) if ok and r and r.Body and (r.StatusCode == nil or r.StatusCode == 200) then local ok2, data = pcall(function() return HttpService:JSONDecode(r.Body) end) if ok2 then return data end end end local ok, body = pcall(function() return game:HttpGet(url) end) if ok and body then local ok2, data = pcall(function() return HttpService:JSONDecode(body) end) if ok2 then return data end end end local currentPages = nil local pageHistory = {} local currentPageIndex = 0 local currentTrack = nil local isLoading = false local lang = "es" local walkEmoteEnabled = true local defaultEmoteSpeed = 1 local currentEmoteSpeed = 1 local walkWatchConnection = nil local activePackAnimSet = {} local activePackName = nil local showingAnimPacks = false local isMenuAnimating = false local I18N = { es = { title_emotes = "CATÁLOGO DE EMOTES (OFICIAL + UGC)", title_anims = "CATÁLOGO DE ANIMACIONES (PACKS)", btn_anims = "Animaciones", btn_emotes = "Ver Emotes", walk_on = "Walk Emote: ON", walk_off = "Walk Emote: OFF", reset_vel = "Restaurar Vel", search_emotes = "Buscar emote o creador UGC...", search_anims = "Buscar animación (ej. Motorcycle, Ninja, Zombie)...", prev = "⬅ Anterior", next = "Siguiente ➡", page = "Página", loading = "Cargando...", no_access = "Sin acceso", try_btn = "Probar", free_btn = "Gratis", equip_btn = "Poner Anim", equipped_btn = "Puesto ✓", applying = "Aplicando...", pack_error = "Error pack", no_r15 = "No R15", equipped_status = "Puesto: ", active_status = "Activo: ", emote_fallback = "Emote", pack_fallback = "Pack", word_dance = "Baile", word_wave = "Saludo", word_salute = "Saludo Militar", word_clap = "Aplauso", word_laugh = "Risa", word_cheer = "Celebración", word_point = "Señalar", word_shrug = "Encoger Hombros", word_stadium = "Ola del Estadio", word_tilt = "Inclinación", word_ninja = "Ninja", word_zombie = "Zombi", word_levitation = "Levitación", word_cartwheel = "Rueda", word_motorcycle = "Moto", word_vampire = "Vampiro", word_pirate = "Pirata", word_robot = "Robot", }, en = { title_emotes = "EMOTE CATALOG (OFFICIAL + UGC)", title_anims = "ANIMATIONS CATALOG (PACKS)", btn_anims = "Animations", btn_emotes = "Show Emotes", walk_on = "Walk Emote: ON", walk_off = "Walk Emote: OFF", reset_vel = "Reset Speed", search_emotes = "Search emote or UGC creator...", search_anims = "Search animation (e.g. Motorcycle, Ninja, Zombie)...", prev = "⬅ Previous", next = "Next ➡", page = "Page", loading = "Loading...", no_access = "No access", try_btn = "Try", free_btn = "Free", equip_btn = "Equip Anim", equipped_btn = "Equipped ✓", applying = "Applying...", pack_error = "Pack error", no_r15 = "Non-R15", equipped_status = "Equipped: ", active_status = "Active: ", emote_fallback = "Emote", pack_fallback = "Pack", word_dance = "Dance", word_wave = "Wave", word_salute = "Salute", word_clap = "Clap", word_laugh = "Laugh", word_cheer = "Cheer", word_point = "Point", word_shrug = "Shrug", word_stadium = "Stadium", word_tilt = "Tilt", word_ninja = "Ninja", word_zombie = "Zombie", word_levitation = "Levitation", word_cartwheel = "Cartwheel", word_motorcycle = "Motorcycle", word_vampire = "Vampire", word_pirate = "Pirate", word_robot = "Robot", } } local function tr(key) local pack = I18N[lang] or I18N.es return pack[key] or I18N.es[key] or key end local function localizeItemName(rawName, isPack) local name = tostring(rawName or "") if name == "" then return isPack and tr("pack_fallback") or tr("emote_fallback") end local replacements = { { pat = "[Dd]ance", es = tr("word_dance"), en = I18N.en.word_dance }, { pat = "[Ww]ave", es = tr("word_wave"), en = I18N.en.word_wave }, { pat = "[Ss]alute", es = tr("word_salute"), en = I18N.en.word_salute }, { pat = "[Cc]lap", es = tr("word_clap"), en = I18N.en.word_clap }, { pat = "[Ll]augh", es = tr("word_laugh"), en = I18N.en.word_laugh }, { pat = "[Cc]heer", es = tr("word_cheer"), en = I18N.en.word_cheer }, { pat = "[Pp]oint", es = tr("word_point"), en = I18N.en.word_point }, { pat = "[Ss]hrug", es = tr("word_shrug"), en = I18N.en.word_shrug }, { pat = "[Ss]tadium", es = tr("word_stadium"), en = I18N.en.word_stadium }, { pat = "[Tt]ilt", es = tr("word_tilt"), en = I18N.en.word_tilt }, { pat = "[Nn]inja", es = tr("word_ninja"), en = I18N.en.word_ninja }, { pat = "[Zz]ombie", es = tr("word_zombie"), en = I18N.en.word_zombie }, { pat = "[Ll]evitation", es = tr("word_levitation"), en = I18N.en.word_levitation }, { pat = "[Cc]artwheel", es = tr("word_cartwheel"), en = I18N.en.word_cartwheel }, { pat = "[Mm]otorcycle", es = tr("word_motorcycle"), en = I18N.en.word_motorcycle }, { pat = "[Vv]ampire", es = tr("word_vampire"), en = I18N.en.word_vampire }, { pat = "[Pp]irate", es = tr("word_pirate"), en = I18N.en.word_pirate }, { pat = "[Rr]obot", es = tr("word_robot"), en = I18N.en.word_robot }, } local result = name for _, rep in ipairs(replacements) do local target = (lang == "en") and rep.en or rep.es result = string.gsub(result, rep.pat, target) end return result end local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "DeltaEmoteCatalog" ScreenGui.ResetOnSpawn = false ScreenGui.IgnoreGuiInset = true ScreenGui.DisplayOrder = 999 ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling ScreenGui.Parent = PlayerGui ------------------------------------------------------------------ -- Pantalla de carga completa (5 segundos, sin huecos) ------------------------------------------------------------------ local SplashFrame = Instance.new("Frame") SplashFrame.Size = UDim2.fromScale(1.2, 1.2) SplashFrame.Position = UDim2.fromScale(-0.1, -0.1) SplashFrame.BackgroundColor3 = Color3.fromRGB(8, 10, 14) SplashFrame.BackgroundTransparency = 0 SplashFrame.BorderSizePixel = 0 SplashFrame.Active = true SplashFrame.ZIndex = 100 SplashFrame.Parent = ScreenGui local SplashCard = Instance.new("Frame") SplashCard.Size = UDim2.new(0, 410, 0, 215) SplashCard.Position = UDim2.new(0.5, -205, 0.5, -107) SplashCard.BackgroundColor3 = Color3.fromRGB(14, 18, 24) SplashCard.BackgroundTransparency = 0.05 SplashCard.BorderSizePixel = 0 SplashCard.ZIndex = 101 SplashCard.Parent = SplashFrame Instance.new("UICorner", SplashCard).CornerRadius = UDim.new(0, 12) local SplashStroke = Instance.new("UIStroke", SplashCard) SplashStroke.Color = Color3.fromRGB(0, 255, 170) SplashStroke.Thickness = 1.6 local SplashHeader = Instance.new("TextLabel") SplashHeader.Size = UDim2.new(1, -24, 0, 26) SplashHeader.Position = UDim2.new(0, 12, 0, 10) SplashHeader.BackgroundTransparency = 1 SplashHeader.Text = "[DELTA KERNEL] EMOTE & ANIM ENGINE v3.4" SplashHeader.TextColor3 = Color3.fromRGB(0, 255, 170) SplashHeader.Font = Enum.Font.Code SplashHeader.TextSize = 13 SplashHeader.TextXAlignment = Enum.TextXAlignment.Left SplashHeader.ZIndex = 102 SplashHeader.Parent = SplashCard local LogLabel = Instance.new("TextLabel") LogLabel.Size = UDim2.new(1, -24, 0, 110) LogLabel.Position = UDim2.new(0, 12, 0, 42) LogLabel.BackgroundColor3 = Color3.fromRGB(9, 12, 16) LogLabel.BackgroundTransparency = 0.2 LogLabel.Text = "> Initializing runtime hooks..." LogLabel.TextColor3 = Color3.fromRGB(190, 255, 225) LogLabel.Font = Enum.Font.Code LogLabel.TextSize = 11 LogLabel.TextXAlignment = Enum.TextXAlignment.Left LogLabel.TextYAlignment = Enum.TextYAlignment.Top LogLabel.TextWrapped = true LogLabel.ZIndex = 102 LogLabel.Parent = SplashCard Instance.new("UICorner", LogLabel).CornerRadius = UDim.new(0, 8) local LogPad = Instance.new("UIPadding", LogLabel) LogPad.PaddingTop = UDim.new(0, 8) LogPad.PaddingLeft = UDim.new(0, 8) LogPad.PaddingRight = UDim.new(0, 8) local BarBg = Instance.new("Frame") BarBg.Size = UDim2.new(1, -24, 0, 12) BarBg.Position = UDim2.new(0, 12, 1, -46) BarBg.BackgroundColor3 = Color3.fromRGB(24, 30, 38) BarBg.BorderSizePixel = 0 BarBg.ZIndex = 102 BarBg.Parent = SplashCard Instance.new("UICorner", BarBg).CornerRadius = UDim.new(1, 0) local BarFill = Instance.new("Frame") BarFill.Size = UDim2.new(0, 0, 1, 0) BarFill.BackgroundColor3 = Color3.fromRGB(0, 255, 170) BarFill.BorderSizePixel = 0 BarFill.ZIndex = 103 BarFill.Parent = BarBg Instance.new("UICorner", BarFill).CornerRadius = UDim.new(1, 0) local PctLabel = Instance.new("TextLabel") PctLabel.Size = UDim2.new(1, -24, 0, 18) PctLabel.Position = UDim2.new(0, 12, 1, -28) PctLabel.BackgroundTransparency = 1 PctLabel.Text = "Loading catalog & animations... 0%" PctLabel.TextColor3 = Color3.fromRGB(140, 165, 180) PctLabel.Font = Enum.Font.Code PctLabel.TextSize = 11 PctLabel.TextXAlignment = Enum.TextXAlignment.Left PctLabel.ZIndex = 102 PctLabel.Parent = SplashCard ------------------------------------------------------------------ -- Selector de idioma (Español / English) con animación ------------------------------------------------------------------ local LangFrame = Instance.new("Frame") LangFrame.Size = UDim2.fromScale(1.2, 1.2) LangFrame.Position = UDim2.fromScale(-0.1, -0.1) LangFrame.BackgroundColor3 = Color3.fromRGB(8, 10, 14) LangFrame.BackgroundTransparency = 0.12 LangFrame.BorderSizePixel = 0 LangFrame.Active = true LangFrame.Visible = false LangFrame.ZIndex = 90 LangFrame.Parent = ScreenGui local LangCard = Instance.new("Frame") LangCard.Size = UDim2.new(0, 360, 0, 200) LangCard.Position = UDim2.new(0.5, -180, 0.5, -100) LangCard.BackgroundColor3 = Color3.fromRGB(15, 18, 25) LangCard.BackgroundTransparency = 0.06 LangCard.BorderSizePixel = 0 LangCard.ZIndex = 91 LangCard.Parent = LangFrame Instance.new("UICorner", LangCard).CornerRadius = UDim.new(0, 14) local LangScale = Instance.new("UIScale", LangCard) LangScale.Scale = 0.78 local LangStroke = Instance.new("UIStroke", LangCard) LangStroke.Color = Color3.fromRGB(0, 255, 200) LangStroke.Thickness = 1.6 local LangTitle = Instance.new("TextLabel") LangTitle.Size = UDim2.new(1, -24, 0, 28) LangTitle.Position = UDim2.new(0, 12, 0, 16) LangTitle.BackgroundTransparency = 1 LangTitle.Text = "ELIGE TU IDIOMA / CHOOSE LANGUAGE" LangTitle.TextColor3 = Color3.fromRGB(0, 255, 200) LangTitle.Font = Enum.Font.GothamBlack LangTitle.TextSize = 14 LangTitle.ZIndex = 92 LangTitle.Parent = LangCard local LangSub = Instance.new("TextLabel") LangSub.Size = UDim2.new(1, -24, 0, 34) LangSub.Position = UDim2.new(0, 12, 0, 44) LangSub.BackgroundTransparency = 1 LangSub.Text = "Selecciona español o inglés para todo el menú" LangSub.TextColor3 = Color3.fromRGB(205, 215, 225) LangSub.Font = Enum.Font.Gotham LangSub.TextSize = 11 LangSub.TextWrapped = true LangSub.ZIndex = 92 LangTitle.Parent = LangCard LangSub.Parent = LangCard local EsBtn = Instance.new("TextButton") EsBtn.Size = UDim2.new(0.45, -8, 0, 48) EsBtn.Position = UDim2.new(0.05, 0, 0, 108) EsBtn.BackgroundColor3 = Color3.fromRGB(0, 195, 155) EsBtn.Text = "🇪🇸 Español" EsBtn.TextColor3 = Color3.fromRGB(10, 12, 16) EsBtn.Font = Enum.Font.GothamBold EsBtn.TextSize = 14 EsBtn.ZIndex = 92 EsBtn.Parent = LangCard Instance.new("UICorner", EsBtn).CornerRadius = UDim.new(0, 10) local EnBtn = Instance.new("TextButton") EnBtn.Size = UDim2.new(0.45, -8, 0, 48) EnBtn.Position = UDim2.new(0.5, 8, 0, 108) EnBtn.BackgroundColor3 = Color3.fromRGB(0, 150, 240) EnBtn.Text = "🇺🇸 English" EnBtn.TextColor3 = Color3.new(1, 1, 1) EnBtn.Font = Enum.Font.GothamBold EnBtn.TextSize = 14 EnBtn.ZIndex = 92 EnBtn.Parent = LangCard Instance.new("UICorner", EnBtn).CornerRadius = UDim.new(0, 10) ------------------------------------------------------------------ -- Botón circular con "R" movible en toda la pantalla ------------------------------------------------------------------ local ToggleBtn = Instance.new("TextButton") ToggleBtn.Size = UDim2.new(0, 34, 0, 34) ToggleBtn.Position = UDim2.new(0, 14, 0.5, -17) ToggleBtn.BackgroundColor3 = Color3.fromRGB(16, 16, 24) ToggleBtn.BackgroundTransparency = 0.25 ToggleBtn.Text = "R" ToggleBtn.TextColor3 = Color3.fromRGB(0, 255, 200) ToggleBtn.Font = Enum.Font.GothamBlack ToggleBtn.TextSize = 15 ToggleBtn.AutoButtonColor = true ToggleBtn.Visible = false ToggleBtn.ZIndex = 20 ToggleBtn.Parent = ScreenGui Instance.new("UICorner", ToggleBtn).CornerRadius = UDim.new(1, 0) local ToggleStroke = Instance.new("UIStroke", ToggleBtn) ToggleStroke.Color = Color3.fromRGB(0, 255, 200) ToggleStroke.Thickness = 1.5 ------------------------------------------------------------------ -- Ventana Principal transparente + escala animada ------------------------------------------------------------------ local MainFrame = Instance.new("Frame") MainFrame.Size = UDim2.new(0, 440, 0, 345) MainFrame.Position = UDim2.new(0.5, -220, 0.5, -172) MainFrame.BackgroundColor3 = Color3.fromRGB(14, 14, 20) MainFrame.BackgroundTransparency = 0.65 MainFrame.Visible = false MainFrame.ClipsDescendants = true MainFrame.ZIndex = 10 MainFrame.Parent = ScreenGui Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 14) local MainScale = Instance.new("UIScale", MainFrame) MainScale.Scale = 0.82 local MainStroke = Instance.new("UIStroke", MainFrame) MainStroke.Color = Color3.fromRGB(0, 255, 200) MainStroke.Thickness = 1.5 MainStroke.Transparency = 0.25 local TopBar = Instance.new("Frame") TopBar.Size = UDim2.new(1, 0, 0, 38) TopBar.BackgroundColor3 = Color3.fromRGB(22, 22, 32) TopBar.BackgroundTransparency = 0.55 TopBar.BorderSizePixel = 0 TopBar.Parent = MainFrame local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, -135, 1, 0) Title.Position = UDim2.new(0, 12, 0, 0) Title.BackgroundTransparency = 1 Title.Text = "CATÁLOGO DE EMOTES (OFICIAL + UGC)" Title.TextColor3 = Color3.new(1, 1, 1) Title.Font = Enum.Font.GothamBold Title.TextSize = 12 Title.TextXAlignment = Enum.TextXAlignment.Left Title.Parent = TopBar local SwitchModeBtn = Instance.new("TextButton") SwitchModeBtn.Size = UDim2.new(0, 86, 0, 24) SwitchModeBtn.Position = UDim2.new(1, -120, 0.5, -12) SwitchModeBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 255) SwitchModeBtn.BackgroundTransparency = 0.15 SwitchModeBtn.Text = "Animaciones" SwitchModeBtn.TextColor3 = Color3.new(1, 1, 1) SwitchModeBtn.Font = Enum.Font.GothamBold SwitchModeBtn.TextSize = 11 SwitchModeBtn.Parent = TopBar Instance.new("UICorner", SwitchModeBtn).CornerRadius = UDim.new(0, 6) local CloseBtn = Instance.new("TextButton") CloseBtn.Size = UDim2.new(0, 26, 0, 24) CloseBtn.Position = UDim2.new(1, -30, 0.5, -12) CloseBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 55) CloseBtn.BackgroundTransparency = 0.3 CloseBtn.Text = "X" CloseBtn.TextColor3 = Color3.fromRGB(0, 255, 200) CloseBtn.Font = Enum.Font.GothamBold CloseBtn.TextSize = 12 CloseBtn.Parent = TopBar Instance.new("UICorner", CloseBtn).CornerRadius = UDim.new(0, 6) local ControlBar = Instance.new("Frame") ControlBar.Size = UDim2.new(1, -20, 0, 32) ControlBar.Position = UDim2.new(0, 10, 0, 43) ControlBar.BackgroundColor3 = Color3.fromRGB(20, 20, 30) ControlBar.BackgroundTransparency = 0.55 ControlBar.Parent = MainFrame Instance.new("UICorner", ControlBar).CornerRadius = UDim.new(0, 8) local WalkEmoteBtn = Instance.new("TextButton") WalkEmoteBtn.Size = UDim2.new(0, 145, 0, 24) WalkEmoteBtn.Position = UDim2.new(0, 4, 0.5, -12) WalkEmoteBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 145) WalkEmoteBtn.BackgroundTransparency = 0.15 WalkEmoteBtn.Text = "Walk Emote: ON" WalkEmoteBtn.TextColor3 = Color3.fromRGB(10, 10, 15) WalkEmoteBtn.Font = Enum.Font.GothamBold WalkEmoteBtn.TextSize = 11 WalkEmoteBtn.Parent = ControlBar Instance.new("UICorner", WalkEmoteBtn).CornerRadius = UDim.new(0, 6) local MinusBtn = Instance.new("TextButton") MinusBtn.Size = UDim2.new(0, 24, 0, 24) MinusBtn.Position = UDim2.new(0, 155, 0.5, -12) MinusBtn.BackgroundColor3 = Color3.fromRGB(36, 36, 52) MinusBtn.BackgroundTransparency = 0.25 MinusBtn.Text = "-" MinusBtn.TextColor3 = Color3.new(1, 1, 1) MinusBtn.Font = Enum.Font.GothamBold MinusBtn.TextSize = 14 MinusBtn.Parent = ControlBar Instance.new("UICorner", MinusBtn).CornerRadius = UDim.new(0, 6) local SpeedBox = Instance.new("TextBox") SpeedBox.Size = UDim2.new(0, 74, 0, 24) SpeedBox.Position = UDim2.new(0, 183, 0.5, -12) SpeedBox.BackgroundColor3 = Color3.fromRGB(28, 28, 40) SpeedBox.BackgroundTransparency = 0.3 SpeedBox.Text = "1" SpeedBox.TextColor3 = Color3.fromRGB(0, 255, 200) SpeedBox.Font = Enum.Font.GothamBold SpeedBox.TextSize = 11 SpeedBox.ClearTextOnFocus = false SpeedBox.Parent = ControlBar Instance.new("UICorner", SpeedBox).CornerRadius = UDim.new(0, 6) local PlusBtn = Instance.new("TextButton") PlusBtn.Size = UDim2.new(0, 24, 0, 24) PlusBtn.Position = UDim2.new(0, 261, 0.5, -12) PlusBtn.BackgroundColor3 = Color3.fromRGB(36, 36, 52) PlusBtn.BackgroundTransparency = 0.25 PlusBtn.Text = "+" PlusBtn.TextColor3 = Color3.new(1, 1, 1) PlusBtn.Font = Enum.Font.GothamBold PlusBtn.TextSize = 14 PlusBtn.Parent = ControlBar Instance.new("UICorner", PlusBtn).CornerRadius = UDim.new(0, 6) local ResetSpeedBtn = Instance.new("TextButton") ResetSpeedBtn.Size = UDim2.new(0, 125, 0, 24) ResetSpeedBtn.Position = UDim2.new(1, -129, 0.5, -12) ResetSpeedBtn.BackgroundColor3 = Color3.fromRGB(55, 45, 95) ResetSpeedBtn.BackgroundTransparency = 0.2 ResetSpeedBtn.Text = "Restaurar Vel" ResetSpeedBtn.TextColor3 = Color3.new(1, 1, 1) ResetSpeedBtn.Font = Enum.Font.GothamBold ResetSpeedBtn.TextSize = 11 ResetSpeedBtn.Parent = ControlBar Instance.new("UICorner", ResetSpeedBtn).CornerRadius = UDim.new(0, 6) local SearchBar = Instance.new("TextBox") SearchBar.Size = UDim2.new(1, -20, 0, 30) SearchBar.Position = UDim2.new(0, 10, 0, 80) SearchBar.BackgroundColor3 = Color3.fromRGB(26, 26, 38) SearchBar.BackgroundTransparency = 0.45 SearchBar.PlaceholderText = "Buscar emote o creador UGC..." SearchBar.Text = "" SearchBar.TextColor3 = Color3.new(1, 1, 1) SearchBar.PlaceholderColor3 = Color3.fromRGB(185, 185, 205) SearchBar.Font = Enum.Font.Gotham SearchBar.TextSize = 12 SearchBar.ClearTextOnFocus = false SearchBar.Parent = MainFrame Instance.new("UICorner", SearchBar).CornerRadius = UDim.new(0, 8) local Scroll = Instance.new("ScrollingFrame") Scroll.Size = UDim2.new(1, -20, 1, -158) Scroll.Position = UDim2.new(0, 10, 0, 116) Scroll.BackgroundTransparency = 1 Scroll.ScrollBarThickness = 4 Scroll.ScrollBarImageColor3 = Color3.fromRGB(0, 255, 200) Scroll.AutomaticCanvasSize = Enum.AutomaticSize.Y Scroll.CanvasSize = UDim2.new(0, 0, 0, 0) Scroll.Parent = MainFrame local Grid = Instance.new("UIGridLayout") Grid.CellSize = UDim2.new(0, 130, 0, 146) Grid.CellPadding = UDim2.new(0, 8, 0, 8) Grid.SortOrder = Enum.SortOrder.LayoutOrder Grid.Parent = Scroll local BottomBar = Instance.new("Frame") BottomBar.Size = UDim2.new(1, -20, 0, 32) BottomBar.Position = UDim2.new(0, 10, 1, -37) BottomBar.BackgroundTransparency = 1 BottomBar.Parent = MainFrame local PrevBtn = Instance.new("TextButton") PrevBtn.Size = UDim2.new(0, 100, 1, 0) PrevBtn.Position = UDim2.new(0, 0, 0, 0) PrevBtn.BackgroundColor3 = Color3.fromRGB(28, 28, 42) PrevBtn.BackgroundTransparency = 0.35 PrevBtn.Text = "⬅ Anterior" PrevBtn.TextColor3 = Color3.fromRGB(0, 255, 200) PrevBtn.Font = Enum.Font.GothamBold PrevBtn.TextSize = 12 PrevBtn.Parent = BottomBar Instance.new("UICorner", PrevBtn).CornerRadius = UDim.new(0, 8) local PageLabel = Instance.new("TextLabel") PageLabel.Size = UDim2.new(1, -210, 1, 0) PageLabel.Position = UDim2.new(0, 105, 0, 0) PageLabel.BackgroundTransparency = 1 PageLabel.Text = "Página 1" PageLabel.TextColor3 = Color3.new(1, 1, 1) PageLabel.Font = Enum.Font.GothamBold PageLabel.TextSize = 12 PageLabel.Parent = BottomBar local NextBtn = Instance.new("TextButton") NextBtn.Size = UDim2.new(0, 100, 1, 0) NextBtn.Position = UDim2.new(1, -100, 0, 0) NextBtn.BackgroundColor3 = Color3.fromRGB(0, 210, 165) NextBtn.BackgroundTransparency = 0.15 NextBtn.Text = "Siguiente ➡" NextBtn.TextColor3 = Color3.fromRGB(10, 10, 15) NextBtn.Font = Enum.Font.GothamBold NextBtn.TextSize = 12 NextBtn.Parent = BottomBar Instance.new("UICorner", NextBtn).CornerRadius = UDim.new(0, 8) ------------------------------------------------------------------ -- Animaciones de interfaz (abrir/cerrar menú y pulsar selección) ------------------------------------------------------------------ local function animateCardSelection(card, button) local stroke = card:FindFirstChildOfClass("UIStroke") if not stroke then stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(0, 255, 200) stroke.Thickness = 2 stroke.Parent = card end stroke.Transparency = 0 local cardScale = card:FindFirstChildOfClass("UIScale") if not cardScale then cardScale = Instance.new("UIScale") cardScale.Parent = card end cardScale.Scale = 0.94 TweenService:Create(cardScale, TweenInfo.new(0.18, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Scale = 1 }):Play() TweenService:Create(stroke, TweenInfo.new(0.45, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Transparency = 1 }):Play() if button then local origColor = button.BackgroundColor3 button.BackgroundColor3 = Color3.fromRGB(0, 255, 200) task.delay(0.18, function() if button and button.Parent then TweenService:Create(button, TweenInfo.new(0.2), { BackgroundColor3 = origColor }):Play() end end) end end local function setMenuOpen(open) if isMenuAnimating then return end if open and MainFrame.Visible then return end if not open and not MainFrame.Visible then return end isMenuAnimating = true if open then MainFrame.Visible = true MainScale.Scale = 0.8 local tween = TweenService:Create(MainScale, TweenInfo.new(0.26, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Scale = 1 }) tween:Play() tween.Completed:Connect(function() isMenuAnimating = false end) else local tween = TweenService:Create(MainScale, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Scale = 0.82 }) tween:Play() tween.Completed:Connect(function() MainFrame.Visible = false MainScale.Scale = 0.82 isMenuAnimating = false end) end end ------------------------------------------------------------------ -- Aplicar idioma en todo el menú ------------------------------------------------------------------ local function applyLanguageTexts() ResetSpeedBtn.Text = tr("reset_vel") PrevBtn.Text = tr("prev") NextBtn.Text = tr("next") WalkEmoteBtn.Text = walkEmoteEnabled and tr("walk_on") or tr("walk_off") if showingAnimPacks then Title.Text = tr("title_anims") SwitchModeBtn.Text = tr("btn_emotes") SearchBar.PlaceholderText = tr("search_anims") else Title.Text = tr("title_emotes") SwitchModeBtn.Text = tr("btn_anims") SearchBar.PlaceholderText = tr("search_emotes") end end ------------------------------------------------------------------ -- Velocidad y modo Walk Emote ------------------------------------------------------------------ local function formatNum(n) if math.floor(n) == n then return tostring(math.floor(n)) end return tostring(math.floor(n * 100) / 100) end local function applyEmoteSpeed(speedValue) local safeSpeed = math.max(0, speedValue) if currentTrack then pcall(function() currentTrack:AdjustSpeed(safeSpeed) end) end end local function clearWalkWatcher() if walkWatchConnection then walkWatchConnection:Disconnect() walkWatchConnection = nil end end local function stopCurrentEmote() clearWalkWatcher() if currentTrack then pcall(function() currentTrack:Stop() currentTrack:Destroy() end) currentTrack = nil end end local function startWalkWatcher() clearWalkWatcher() if walkEmoteEnabled or not currentTrack then return end walkWatchConnection = RunService.Heartbeat:Connect(function() if not currentTrack or walkEmoteEnabled then return end local char = Player.Character local hum = char and char:FindFirstChildOfClass("Humanoid") if hum and hum.MoveDirection.Magnitude > 0.05 then stopCurrentEmote() end end) end local function updateWalkEmoteButton() if walkEmoteEnabled then WalkEmoteBtn.Text = tr("walk_on") WalkEmoteBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 145) WalkEmoteBtn.TextColor3 = Color3.fromRGB(10, 10, 15) clearWalkWatcher() else WalkEmoteBtn.Text = tr("walk_off") WalkEmoteBtn.BackgroundColor3 = Color3.fromRGB(255, 110, 50) WalkEmoteBtn.TextColor3 = Color3.new(1, 1, 1) startWalkWatcher() end end local function setEmoteSpeed(newSpeed) local num = tonumber(newSpeed) if not num then return end num = math.max(0, num) currentEmoteSpeed = num SpeedBox.Text = formatNum(currentEmoteSpeed) applyEmoteSpeed(currentEmoteSpeed) end local function restoreNormalEmoteSpeed() currentEmoteSpeed = defaultEmoteSpeed SpeedBox.Text = formatNum(defaultEmoteSpeed) applyEmoteSpeed(currentEmoteSpeed) end WalkEmoteBtn.MouseButton1Click:Connect(function() walkEmoteEnabled = not walkEmoteEnabled updateWalkEmoteButton() end) MinusBtn.MouseButton1Click:Connect(function() setEmoteSpeed(currentEmoteSpeed - 0.25) end) PlusBtn.MouseButton1Click:Connect(function() setEmoteSpeed(currentEmoteSpeed + 0.25) end) SpeedBox.FocusLost:Connect(function() local cleaned = string.match(SpeedBox.Text, "%-?%d+%.?%d*") if cleaned then setEmoteSpeed(cleaned) else SpeedBox.Text = formatNum(currentEmoteSpeed) end end) ResetSpeedBtn.MouseButton1Click:Connect(function() restoreNormalEmoteSpeed() end) CloseBtn.MouseButton1Click:Connect(function() setMenuOpen(false) end) ------------------------------------------------------------------ -- Cargar y aplicar packs de animaciones ------------------------------------------------------------------ local function classifyAnim(name) local n = tostring(name):lower() if n:find("swim") and n:find("idle") then return "swimidle" end if n:find("swim") then return "swim" end if n:find("idle") then return "idle" end if n:find("walk") then return "walk" end if n:find("run") then return "run" end if n:find("jump") then return "jump" end if n:find("fall") then return "fall" end if n:find("climb") then return "climb" end end local function loadAssetObjects(id) if type(getobjects) == "function" or game.GetObjects then local ok, res = pcall(function() return game:GetObjects("rbxassetid://" .. tostring(id)) end) if ok and res and res[1] then return res[1] end end local ok, res = pcall(function() return InsertService:LoadAsset(id) end) if ok and res then return res end end local function extractAnimList(asset) local list = {} if asset:IsA("Animation") then table.insert(list, {asset.Name, asset.AnimationId}) end for _, d in ipairs(asset:GetDescendants()) do if d:IsA("Animation") and d.AnimationId ~= "" then table.insert(list, {d.Name, d.AnimationId}) end end table.sort(list, function(a, b) return a[1] < b[1] end) return list end local function setAnimateSlot(animate, folder, child, animId) local f = animate:FindFirstChild(folder) local a = f and f:FindFirstChild(child) if a and animId then a.AnimationId = animId end end local function applyPackToCharacter(char) if not char or next(activePackAnimSet) == nil then return end local animate = char:WaitForChild("Animate", 5) local hum = char:WaitForChild("Humanoid", 5) if not animate or not hum then return end setAnimateSlot(animate, "idle", "Animation1", activePackAnimSet.idle1) setAnimateSlot(animate, "idle", "Animation2", activePackAnimSet.idle2 or activePackAnimSet.idle1) setAnimateSlot(animate, "walk", "WalkAnim", activePackAnimSet.walk) setAnimateSlot(animate, "run", "RunAnim", activePackAnimSet.run) setAnimateSlot(animate, "jump", "JumpAnim", activePackAnimSet.jump) setAnimateSlot(animate, "fall", "FallAnim", activePackAnimSet.fall) setAnimateSlot(animate, "climb", "ClimbAnim", activePackAnimSet.climb) setAnimateSlot(animate, "swim", "Swim", activePackAnimSet.swim) setAnimateSlot(animate, "swimidle", "SwimIdle", activePackAnimSet.swimidle) for _, t in ipairs(hum:GetPlayingAnimationTracks()) do pcall(function() t:Stop(0) end) end animate.Disabled = true task.wait() animate.Disabled = false end Player.CharacterAdded:Connect(function(char) task.wait(0.5) applyPackToCharacter(char) end) local function equipAnimationBundle(bundleId, bundleName) PageLabel.Text = tr("applying") local items = nil local ok, info = pcall(function() return MarketplaceService:GetProductInfo(bundleId, Enum.InfoType.Bundle) end) if ok and info and info.Items then items = info.Items end if not items then local d = httpGet("https://catalog.roblox.com/v1/bundles/details?bundleIds=" .. tostring(bundleId)) if d and d[1] and d[1].items then items = {} for _, it in ipairs(d[1].items) do table.insert(items, {Id = it.id, Name = it.name, Type = it.type}) end end end if not items then PageLabel.Text = tr("pack_error") return end local built = {} for _, item in ipairs(items) do if item.Type == "Asset" then local kind = classifyAnim(item.Name) if kind then local asset = loadAssetObjects(item.Id) if asset then local anims = extractAnimList(asset) if kind == "idle" then built.idle1 = anims[1] and anims[1][2] built.idle2 = anims[2] and anims[2][2] elseif anims[1] then built[kind] = anims[1][2] end pcall(function() asset:Destroy() end) end end end end if next(built) == nil then PageLabel.Text = tr("no_r15") return end activePackAnimSet = built activePackName = bundleName applyPackToCharacter(Player.Character) PageLabel.Text = tr("equipped_status") .. localizeItemName(bundleName, true) end local function clearScrollCards() for _, child in ipairs(Scroll:GetChildren()) do if child:IsA("Frame") then child:Destroy() end end Scroll.CanvasPosition = Vector2.new(0, 0) end local function renderAnimPacksPage(packs) clearScrollCards() for i, pack in ipairs(packs) do local rawPackName = pack.Name or (tr("pack_fallback") .. " " .. tostring(pack.Id)) local displayPackName = localizeItemName(rawPackName, true) local Card = Instance.new("Frame") Card.BackgroundColor3 = Color3.fromRGB(24, 24, 35) Card.BackgroundTransparency = 0.5 Card.LayoutOrder = i Card.Parent = Scroll Instance.new("UICorner", Card).CornerRadius = UDim.new(0, 10) local Thumb = Instance.new("ImageLabel") Thumb.Size = UDim2.new(1, -10, 0, 72) Thumb.Position = UDim2.new(0, 5, 0, 5) Thumb.BackgroundColor3 = Color3.fromRGB(16, 16, 24) Thumb.BackgroundTransparency = 0.35 Thumb.Image = "rbxthumb://type=BundleThumbnail&id=" .. tostring(pack.Id) .. "&w=150&h=150" Thumb.ImageTransparency = 0 Thumb.ScaleType = Enum.ScaleType.Fit Thumb.Parent = Card Instance.new("UICorner", Thumb).CornerRadius = UDim.new(0, 8) local NameLbl = Instance.new("TextLabel") NameLbl.Size = UDim2.new(1, -8, 0, 28) NameLbl.Position = UDim2.new(0, 4, 0, 80) NameLbl.BackgroundTransparency = 1 NameLbl.Text = displayPackName NameLbl.TextColor3 = Color3.new(1, 1, 1) NameLbl.TextTransparency = 0 NameLbl.Font = Enum.Font.GothamSemibold NameLbl.TextSize = 10 NameLbl.TextWrapped = true NameLbl.Parent = Card local EquipBtn = Instance.new("TextButton") EquipBtn.Size = UDim2.new(1, -10, 0, 24) EquipBtn.Position = UDim2.new(0, 5, 1, -29) EquipBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 255) EquipBtn.BackgroundTransparency = 0.15 EquipBtn.Text = (activePackName == rawPackName) and tr("equipped_btn") or tr("equip_btn") EquipBtn.TextColor3 = Color3.new(1, 1, 1) EquipBtn.Font = Enum.Font.GothamBold EquipBtn.TextSize = 10 EquipBtn.Parent = Card Instance.new("UICorner", EquipBtn).CornerRadius = UDim.new(0, 6) EquipBtn.MouseButton1Click:Connect(function() animateCardSelection(Card, EquipBtn) EquipBtn.Text = "..." equipAnimationBundle(pack.Id, rawPackName) EquipBtn.Text = tr("equipped_btn") end) end PageLabel.Text = activePackName and (tr("active_status") .. localizeItemName(activePackName, true)) or (tr("page") .. " " .. tostring(currentPageIndex)) PrevBtn.Visible = currentPageIndex > 1 NextBtn.Visible = (currentPages ~= nil and not currentPages.IsFinished) or (currentPageIndex < #pageHistory) end local function searchAnimPacks(keyword) if isLoading then return end isLoading = true PageLabel.Text = tr("loading") local params = CatalogSearchParams.new() params.BundleTypes = { Enum.BundleType.Animations } params.SortType = Enum.CatalogSortType.Relevance params.Limit = 30 if keyword and keyword ~= "" then params.SearchKeyword = keyword end local success, pages = pcall(function() return AvatarEditorService:SearchCatalogAsync(params) end) if success and pages then local first = pages:GetCurrentPage() if first and #first > 0 then currentPages = pages pageHistory = { first } currentPageIndex = 1 renderAnimPacksPage(first) isLoading = false return end end local url = "https://catalog.roblox.com/v1/search/items/details?Category=12&Limit=30&SortType=0&Keyword=" .. HttpService:UrlEncode(keyword or "") local d = httpGet(url) local list = {} if d and d.data then for _, it in ipairs(d.data) do if it.itemType == "Bundle" then table.insert(list, { Id = it.id, Name = it.name }) end end end currentPages = nil pageHistory = { list } currentPageIndex = 1 renderAnimPacksPage(list) isLoading = false end ------------------------------------------------------------------ -- Reproducir emote individual en el personaje ------------------------------------------------------------------ local function playEmote(assetId) local char = Player.Character local hum = char and char:FindFirstChildOfClass("Humanoid") local animator = hum and hum:FindFirstChildOfClass("Animator") if not animator then return end if not walkEmoteEnabled and hum.MoveDirection.Magnitude > 0.05 then return end stopCurrentEmote() local animId = nil if type(getobjects) == "function" or game.GetObjects then pcall(function() local objs = game:GetObjects("rbxassetid://" .. tostring(assetId)) if objs and objs[1] then local animObj = objs[1]:IsA("Animation") and objs[1] or objs[1]:FindFirstChildWhichIsA("Animation", true) if animObj and animObj.AnimationId ~= "" then animId = animObj.AnimationId end for _, o in ipairs(objs) do pcall(function() o:Destroy() end) end end end) end if not animId or animId == "" then animId = "rbxassetid://" .. tostring(assetId) end local ok = pcall(function() local anim = Instance.new("Animation") anim.AnimationId = animId currentTrack = animator:LoadAnimation(anim) currentTrack.Priority = Enum.AnimationPriority.Action currentTrack.Looped = true currentTrack:Play() end) if ok then applyEmoteSpeed(currentEmoteSpeed) startWalkWatcher() else warn("No se pudo reproducir este emote en el cliente actual.") end end local function renderEmotesPage(items) clearScrollCards() for i, item in ipairs(items) do local Card = Instance.new("Frame") Card.BackgroundColor3 = Color3.fromRGB(24, 24, 35) Card.BackgroundTransparency = 0.5 Card.LayoutOrder = i Card.Parent = Scroll Instance.new("UICorner", Card).CornerRadius = UDim.new(0, 10) local Thumb = Instance.new("ImageLabel") Thumb.Size = UDim2.new(1, -10, 0, 72) Thumb.Position = UDim2.new(0, 5, 0, 5) Thumb.BackgroundColor3 = Color3.fromRGB(16, 16, 24) Thumb.BackgroundTransparency = 0.35 Thumb.Image = "rbxthumb://type=Asset&id=" .. tostring(item.Id) .. "&w=150&h=150" Thumb.ImageTransparency = 0 Thumb.ScaleType = Enum.ScaleType.Fit Thumb.Parent = Card Instance.new("UICorner", Thumb).CornerRadius = UDim.new(0, 8) local NameLbl = Instance.new("TextLabel") NameLbl.Size = UDim2.new(1, -8, 0, 28) NameLbl.Position = UDim2.new(0, 4, 0, 80) NameLbl.BackgroundTransparency = 1 NameLbl.Text = localizeItemName(item.Name, false) NameLbl.TextColor3 = Color3.new(1, 1, 1) NameLbl.TextTransparency = 0 NameLbl.Font = Enum.Font.GothamSemibold NameLbl.TextSize = 10 NameLbl.TextWrapped = true NameLbl.Parent = Card local TryBtn = Instance.new("TextButton") TryBtn.Size = UDim2.new(0.47, -3, 0, 24) TryBtn.Position = UDim2.new(0, 4, 1, -29) TryBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 255) TryBtn.BackgroundTransparency = 0.15 TryBtn.Text = tr("try_btn") TryBtn.TextColor3 = Color3.new(1, 1, 1) TryBtn.Font = Enum.Font.GothamBold TryBtn.TextSize = 10 TryBtn.Parent = Card Instance.new("UICorner", TryBtn).CornerRadius = UDim.new(0, 6) local BuyBtn = Instance.new("TextButton") BuyBtn.Size = UDim2.new(0.47, -3, 0, 24) BuyBtn.Position = UDim2.new(0.52, 0, 1, -29) BuyBtn.BackgroundColor3 = Color3.fromRGB(45, 200, 100) BuyBtn.BackgroundTransparency = 0.15 BuyBtn.Text = (item.Price and item.Price > 0) and ("R$" .. tostring(item.Price)) or tr("free_btn") BuyBtn.TextColor3 = Color3.new(1, 1, 1) BuyBtn.Font = Enum.Font.GothamBold BuyBtn.TextSize = 10 BuyBtn.Parent = Card Instance.new("UICorner", BuyBtn).CornerRadius = UDim.new(0, 6) TryBtn.MouseButton1Click:Connect(function() animateCardSelection(Card, TryBtn) playEmote(item.Id) end) BuyBtn.MouseButton1Click:Connect(function() animateCardSelection(Card, BuyBtn) pcall(function() MarketplaceService:PromptPurchase(Player, item.Id) end) end) end PageLabel.Text = tr("page") .. " " .. tostring(currentPageIndex) PrevBtn.Visible = currentPageIndex > 1 NextBtn.Visible = (currentPages ~= nil and not currentPages.IsFinished) or (currentPageIndex < #pageHistory) end local function searchEmotes(keyword) if isLoading then return end isLoading = true PageLabel.Text = tr("loading") local params = CatalogSearchParams.new() params.AssetTypes = { Enum.AvatarAssetType.EmoteAnimation } params.SalesTypeFilter = Enum.SalesTypeFilter.All params.SortType = Enum.CatalogSortType.Relevance params.IncludeOffSale = true params.Limit = 30 if keyword and keyword ~= "" then params.SearchKeyword = keyword end local success, pages = pcall(function() return AvatarEditorService:SearchCatalogAsync(params) end) if success and pages then currentPages = pages pageHistory = { pages:GetCurrentPage() } currentPageIndex = 1 renderEmotesPage(pageHistory[1]) else PageLabel.Text = tr("no_access") end isLoading = false end local function syncViewMode() currentPages = nil pageHistory = {} currentPageIndex = 0 applyLanguageTexts() if showingAnimPacks then SwitchModeBtn.BackgroundColor3 = Color3.fromRGB(0, 200, 150) searchAnimPacks(SearchBar.Text) else SwitchModeBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 255) searchEmotes(SearchBar.Text) end end SwitchModeBtn.MouseButton1Click:Connect(function() showingAnimPacks = not showingAnimPacks syncViewMode() end) NextBtn.MouseButton1Click:Connect(function() if isLoading then return end if currentPageIndex < #pageHistory then currentPageIndex += 1 if showingAnimPacks then renderAnimPacksPage(pageHistory[currentPageIndex]) else renderEmotesPage(pageHistory[currentPageIndex]) end elseif currentPages and not currentPages.IsFinished then isLoading = true PageLabel.Text = tr("loading") local ok = pcall(function() currentPages:AdvanceToNextPageAsync() end) if ok then currentPageIndex += 1 pageHistory[currentPageIndex] = currentPages:GetCurrentPage() if showingAnimPacks then renderAnimPacksPage(pageHistory[currentPageIndex]) else renderEmotesPage(pageHistory[currentPageIndex]) end end isLoading = false end end) PrevBtn.MouseButton1Click:Connect(function() if isLoading or currentPageIndex <= 1 then return end currentPageIndex -= 1 if showingAnimPacks then renderAnimPacksPage(pageHistory[currentPageIndex]) else renderEmotesPage(pageHistory[currentPageIndex]) end end) SearchBar.FocusLost:Connect(function(enterPressed) if enterPressed then if showingAnimPacks then searchAnimPacks(SearchBar.Text) else searchEmotes(SearchBar.Text) end end end) -- Selección animada de idioma al terminar la carga local langSelected = false local function selectLanguageWithAnimation(chosenLang, chosenBtn) if langSelected then return end langSelected = true lang = chosenLang TweenService:Create(chosenBtn, TweenInfo.new(0.14, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { BackgroundColor3 = Color3.fromRGB(0, 255, 200) }):Play() TweenService:Create(LangScale, TweenInfo.new(0.12, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Scale = 1.05 }):Play() applyLanguageTexts() task.delay(0.18, function() local outTween = TweenService:Create(LangScale, TweenInfo.new(0.22, Enum.EasingStyle.Back, Enum.EasingDirection.In), { Scale = 0.72 }) local fadeBg = TweenService:Create(LangFrame, TweenInfo.new(0.22, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { BackgroundTransparency = 1 }) outTween:Play() fadeBg:Play() outTween.Completed:Wait() LangFrame:Destroy() ToggleBtn.Visible = true setMenuOpen(true) if showingAnimPacks then searchAnimPacks(SearchBar.Text) else searchEmotes(SearchBar.Text) end end) end EsBtn.MouseButton1Click:Connect(function() selectLanguageWithAnimation("es", EsBtn) end) EnBtn.MouseButton1Click:Connect(function() selectLanguageWithAnimation("en", EnBtn) end) -- Mover el botón circular "R" libremente en toda la pantalla local btnDragging = false local btnMoved = false local btnDragStartInput, btnDragStartPos local function clampButtonToScreen(targetOffsetX, targetOffsetY) local viewport = workspace.CurrentCamera and workspace.CurrentCamera.ViewportSize or Vector2.new(1280, 720) local btnW = ToggleBtn.AbsoluteSize.X local btnH = ToggleBtn.AbsoluteSize.Y local maxX = math.max(0, viewport.X - btnW) local maxY = math.max(0, viewport.Y - btnH) local clampedX = math.clamp(targetOffsetX, 0, maxX) local clampedY = math.clamp(targetOffsetY, 0, maxY) ToggleBtn.Position = UDim2.new(0, clampedX, 0, clampedY) end ToggleBtn.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then btnDragging = true btnMoved = false btnDragStartInput = input.Position btnDragStartPos = Vector2.new(ToggleBtn.AbsolutePosition.X, ToggleBtn.AbsolutePosition.Y) input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then btnDragging = false if not btnMoved then if MainFrame.Visible then setMenuOpen(false) else setMenuOpen(true) if #pageHistory == 0 then if showingAnimPacks then searchAnimPacks(SearchBar.Text) else searchEmotes(SearchBar.Text) end end end end end end) end end) UserInputService.InputChanged:Connect(function(input) if btnDragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local delta = input.Position - btnDragStartInput if delta.Magnitude > 5 then btnMoved = true end clampButtonToScreen(btnDragStartPos.X + delta.X, btnDragStartPos.Y + delta.Y) end end) -- Arrastrar ventana principal local dragging, dragInput, dragStart, startPos TopBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = MainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) TopBar.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) ------------------------------------------------------------------ -- Secuencia de carga completa de 5 segundos al iniciar ------------------------------------------------------------------ task.spawn(function() local steps = { { waitTime = 1.0, pct = 20, line = "> Hooking Delta client bridge...\n> Attaching AvatarEditorService..." }, { waitTime = 1.0, pct = 45, line = "> Attaching AvatarEditorService...\n> Fetching Official + UGC Emote index..." }, { waitTime = 1.0, pct = 70, line = "> Fetching Official + UGC Emote index...\n> Indexing R15 Animation bundles (Idle/Walk/Run/Jump)..." }, { waitTime = 1.0, pct = 90, line = "> Indexing R15 Animation bundles...\n> Injecting custom speed & WalkEmote listeners..." }, { waitTime = 1.0, pct = 100, line = "> All emotes & animations synced.\n> Opening language selector..." }, } for _, st in ipairs(steps) do LogLabel.Text = st.line PctLabel.Text = "Loading catalog & animations... " .. tostring(st.pct) .. "%" TweenService:Create(BarFill, TweenInfo.new(0.35, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Size = UDim2.new(st.pct / 100, 0, 1, 0) }):Play() task.wait(st.waitTime) end local fadeSplash = TweenService:Create(SplashFrame, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { BackgroundTransparency = 1 }) TweenService:Create(SplashCard, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { BackgroundTransparency = 1 }):Play() for _, d in ipairs(SplashCard:GetDescendants()) do if d:IsA("TextLabel") then TweenService:Create(d, TweenInfo.new(0.15), { TextTransparency = 1 }):Play() elseif d:IsA("Frame") then TweenService:Create(d, TweenInfo.new(0.15), { BackgroundTransparency = 1 }):Play() end end fadeSplash:Play() fadeSplash.Completed:Wait() SplashFrame:Destroy() LangFrame.Visible = true TweenService:Create(LangScale, TweenInfo.new(0.26, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Scale = 1 }):Play() end)