local Players = game:GetService("Players") local CoreGui = game:GetService("CoreGui") local LocalPlayer = Players.LocalPlayer getgenv().LetterKeyboard = { CurrentTrack = nil, CachedAnims = {}, WordDelay = 1.2, TypingWord = false } local Hub = getgenv().LetterKeyboard -- Complete A-Z Catalog Emote IDs Hub.LetterIDs = { A = "123568949999354", B = "98057282560023", C = "75897258207854", D = "73790111417009", E = "74938725303171", F = "121176827693954", G = "118289561223886", H = "115175069653588", I = "118013197699720", J = "85931269729198", K = "113372062454228", L = "112889958608532", M = "92949132497186", N = "89268274197005", O = "116717190847819", P = "70427661378472", Q = "136048002881431", R = "70906283130659", S = "103882719829466", T = "101148299112118", U = "106215275638780", V = "80107737474463", W = "71356806012046", X = "105932625977823", Y = "74303553949852", Z = "76792691013082" } function Hub.StopPose() if Hub.CurrentTrack then pcall(function() Hub.CurrentTrack:Stop() end) Hub.CurrentTrack = nil end end -- Resolves Catalog Emote Asset to playable Animation and loops it function Hub.PlayLetter(letter) letter = string.upper(letter) local catalogId = Hub.LetterIDs[letter] if not catalogId then return end local char = LocalPlayer.Character local hum = char and char:FindFirstChildOfClass("Humanoid") local animator = hum and hum:FindFirstChildOfClass("Animator") if not (hum and animator) then return end Hub.StopPose() -- Fetch & cache the inner Animation object from the catalog asset local animObj = Hub.CachedAnims[letter] if not animObj then local ok, objects = pcall(function() return game:GetObjects("rbxassetid://" .. catalogId) end) if ok and objects then for _, obj in ipairs(objects) do if obj:IsA("Animation") then animObj = obj break end local inner = obj:FindFirstChildWhichIsA("Animation", true) if inner then animObj = inner break end end end if not animObj then animObj = Instance.new("Animation") animObj.AnimationId = "rbxassetid://" .. catalogId end Hub.CachedAnims[letter] = animObj end local ok, track = pcall(function() return animator:LoadAnimation(animObj) end) if ok and track then track.Priority = Enum.AnimationPriority.Action4 track.Looped = true track:Play() Hub.CurrentTrack = track end end local GuiParent = (gethui and gethui()) or CoreGui if GuiParent:FindFirstChild("LetterKeyboardGUI") then GuiParent.LetterKeyboardGUI:Destroy() end local ScreenGui = Instance.new("ScreenGui", GuiParent) ScreenGui.Name, ScreenGui.ResetOnSpawn = "LetterKeyboardGUI", false -- Movable Close / Open Pill Button local ToggleBtn = Instance.new("TextButton", ScreenGui) ToggleBtn.Size, ToggleBtn.Position = UDim2.new(0, 74, 0, 28), UDim2.new(0.075, 0, 0.82, 0) ToggleBtn.BackgroundColor3, ToggleBtn.BackgroundTransparency = Color3.fromRGB(20, 22, 26), 0.15 ToggleBtn.Text, ToggleBtn.TextColor3 = "Close", Color3.new(1, 1, 1) ToggleBtn.Font, ToggleBtn.TextSize = Enum.Font.GothamBold, 13 ToggleBtn.Active, ToggleBtn.Draggable = true, true Instance.new("UICorner", ToggleBtn).CornerRadius = UDim.new(0, 8) local Stroke = Instance.new("UIStroke", ToggleBtn) Stroke.Color, Stroke.Thickness, Stroke.Transparency = Color3.new(1, 1, 1), 1, 0.75 -- Main Keyboard Window local Main = Instance.new("Frame", ScreenGui) Main.Size = UDim2.new(0, 390, 0, 225) Main.Position = UDim2.new(0.5, -195, 0.55, 0) Main.BackgroundColor3 = Color3.fromRGB(24, 24, 30) Main.Active, Main.Draggable = true, true Instance.new("UICorner", Main).CornerRadius = UDim.new(0, 8) local Title = Instance.new("TextLabel", Main) Title.Size, Title.Position = UDim2.new(1, -100, 0, 30), UDim2.new(0, 10, 0, 0) Title.BackgroundTransparency, Title.Text, Title.TextColor3 = 1, "Letter Emote Keyboard (A-Z)", Color3.new(1, 1, 1) Title.Font, Title.TextSize, Title.TextXAlignment = Enum.Font.GothamBold, 13, Enum.TextXAlignment.Left -- Stop Pose Button in Title Bar local StopBtn = Instance.new("TextButton", Main) StopBtn.Size, StopBtn.Position = UDim2.new(0, 76, 0, 22), UDim2.new(1, -82, 0, 4) StopBtn.BackgroundColor3 = Color3.fromRGB(175, 50, 50) StopBtn.Text, StopBtn.TextColor3 = "Stop Pose", Color3.new(1, 1, 1) StopBtn.Font, StopBtn.TextSize = Enum.Font.GothamBold, 11 Instance.new("UICorner", StopBtn).CornerRadius = UDim.new(0, 5) ToggleBtn.MouseButton1Click:Connect(function() Main.Visible = not Main.Visible ToggleBtn.Text = Main.Visible and "Close" or "Open" end) local Rows = { { "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P" }, { "A", "S", "D", "F", "G", "H", "J", "K", "L" }, { "Z", "X", "C", "V", "B", "N", "M" } } local KeyButtons = {} local function highlightKey(activeLetter) for ltr, btn in pairs(KeyButtons) do btn.BackgroundColor3 = (ltr == activeLetter) and Color3.fromRGB(46, 140, 80) or Color3.fromRGB(40, 40, 52) end end StopBtn.MouseButton1Click:Connect(function() Hub.TypingWord = false Hub.StopPose() highlightKey(nil) end) for rIdx, rowKeys in ipairs(Rows) do local keyWidth = 33 local gap = 4 local totalWidth = (#rowKeys * keyWidth) + ((#rowKeys - 1) * gap) local startX = (390 - totalWidth) / 2 local posY = 36 + ((rIdx - 1) * 44) for kIdx, letter in ipairs(rowKeys) do local keyBtn = Instance.new("TextButton", Main) keyBtn.Size = UDim2.new(0, keyWidth, 0, 38) keyBtn.Position = UDim2.new(0, startX + ((kIdx - 1) * (keyWidth + gap)), 0, posY) keyBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 52) keyBtn.Text = letter keyBtn.TextColor3 = Color3.new(1, 1, 1) keyBtn.Font = Enum.Font.GothamBold keyBtn.TextSize = 14 Instance.new("UICorner", keyBtn).CornerRadius = UDim.new(0, 6) keyBtn.MouseButton1Click:Connect(function() Hub.TypingWord = false highlightKey(letter) Hub.PlayLetter(letter) end) KeyButtons[letter] = keyBtn end end -- Bottom Bar: Type a word to spell it out automatically local WordBox = Instance.new("TextBox", Main) WordBox.Size = UDim2.new(0, 265, 0, 34) WordBox.Position = UDim2.new(0, 12, 0, 178) WordBox.BackgroundColor3 = Color3.fromRGB(34, 34, 44) WordBox.PlaceholderText = "Type a word to spell (e.g. HELLO)..." WordBox.PlaceholderColor3 = Color3.fromRGB(140, 140, 155) WordBox.Text = "" WordBox.TextColor3 = Color3.fromRGB(255, 225, 110) WordBox.Font = Enum.Font.GothamSemibold WordBox.TextSize = 12 WordBox.ClearTextOnFocus = false Instance.new("UICorner", WordBox).CornerRadius = UDim.new(0, 6) local SpellBtn = Instance.new("TextButton", Main) SpellBtn.Size = UDim2.new(0, 95, 0, 34) SpellBtn.Position = UDim2.new(0, 283, 0, 178) SpellBtn.BackgroundColor3 = Color3.fromRGB(60, 115, 200) SpellBtn.Text = "Spell Word" SpellBtn.TextColor3 = Color3.new(1, 1, 1) SpellBtn.Font = Enum.Font.GothamBold SpellBtn.TextSize = 12 Instance.new("UICorner", SpellBtn).CornerRadius = UDim.new(0, 6) SpellBtn.MouseButton1Click:Connect(function() local word = string.upper(WordBox.Text):gsub("[^A-Z]", "") if word == "" then return end Hub.TypingWord = true task.spawn(function() for i = 1, #word do if not Hub.TypingWord then break end local ch = string.sub(word, i, i) highlightKey(ch) Hub.PlayLetter(ch) task.wait(Hub.WordDelay) end Hub.TypingWord = false end) end) -- JANELA EXTRA INDEPENDENTE PARA O DISCORD local Plrs = game:GetService("Players") local LP = Plrs.LocalPlayer local CG = LP:WaitForChild("PlayerGui") if CG:FindFirstChild("DiscordPopup") then CG.DiscordPopup:Destroy() end local discGui = Instance.new("ScreenGui") discGui.Name = "DiscordPopup" discGui.ResetOnSpawn = false discGui.DisplayOrder = 999 -- Garante que fique por cima de tudo discGui.Parent = CG -- Fundo da Janela local frame = Instance.new("Frame", discGui) frame.Size = UDim2.new(0, 240, 0, 115) frame.Position = UDim2.new(0.5, -120, 0.5, -57) frame.BackgroundColor3 = Color3.fromRGB(24, 24, 32) frame.Active = true frame.Draggable = true Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 10) local stroke = Instance.new("UIStroke", frame) stroke.Color = Color3.fromRGB(88, 101, 242) stroke.Thickness = 2 -- Título local title = Instance.new("TextLabel", frame) title.Size = UDim2.new(1, -20, 0, 30) title.Position = UDim2.new(0, 10, 0, 5) title.BackgroundTransparency = 1 title.Text = "JOIN OUR DISCORD" title.TextColor3 = Color3.new(1, 1, 1) title.Font = Enum.Font.GothamBold title.TextSize = 14 -- Subtítulo / Link local sub = Instance.new("TextLabel", frame) sub.Size = UDim2.new(1, -20, 0, 20) sub.Position = UDim2.new(0, 10, 0, 32) sub.BackgroundTransparency = 1 sub.Text = "discord.gg/gFwBrV8KW" sub.TextColor3 = Color3.fromRGB(180, 185, 255) sub.Font = Enum.Font.Gotham sub.TextSize = 11 -- Botão Copiar e Fechar local copyBtn = Instance.new("TextButton", frame) copyBtn.Size = UDim2.new(1, -24, 0, 36) copyBtn.Position = UDim2.new(0, 12, 0, 64) copyBtn.BackgroundColor3 = Color3.fromRGB(88, 101, 242) copyBtn.Text = "COPY DISCORD LINK for more updates" copyBtn.TextColor3 = Color3.new(1, 1, 1) copyBtn.Font = Enum.Font.GothamBold copyBtn.TextSize = 12 Instance.new("UICorner", copyBtn).CornerRadius = UDim.new(0, 6) -- Ação de Copiar e Excluir a GUI copyBtn.MouseButton1Click:Connect(function() local link = "https://discord.gg/R8eshkhVrt" if setclipboard then setclipboard(link) end copyBtn.Text = "COPIED! CLOSING..." copyBtn.BackgroundColor3 = Color3.fromRGB(45, 195, 75) task.wait(0.8) discGui:Destroy() -- Exclui a GUI extra completamente end)