local MarketplaceService = game:GetService("MarketplaceService") local Players = game:GetService("Players") local info = require(game.ReplicatedStorage.Info) local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local function make(class, props, parent) local obj = Instance.new(class) for k, v in props do obj[k] = v end obj.Parent = parent return obj end -- Lista de emotes limitados (mesma lógica do script original) local limitedList = {} for _, item in info.Limited do table.insert(limitedList, {Name = item.Name, ID = item.ID}) end -- GUI local screenGui = make("ScreenGui", {Name = "LimitedEmoteShop", ResetOnSpawn = false}, playerGui) local toggle = make("TextButton", { Name = "Toggle", Size = UDim2.fromOffset(160, 36), Position = UDim2.new(0, 12, 0, 12), BackgroundColor3 = Color3.fromRGB(35, 35, 45), TextColor3 = Color3.new(1, 1, 1), Font = Enum.Font.GothamBold, TextSize = 14, Text = "Limited Emotes", }, screenGui) make("UICorner", {CornerRadius = UDim.new(0, 8)}, toggle) local main = make("Frame", { Name = "Main", Size = UDim2.fromOffset(520, 400), Position = UDim2.new(0.5, -260, 0.5, -200), BackgroundColor3 = Color3.fromRGB(25, 25, 32), Visible = false, Active = true, }, screenGui) make("UICorner", {CornerRadius = UDim.new(0, 10)}, main) make("TextLabel", { Size = UDim2.new(1, -60, 0, 40), Position = UDim2.fromOffset(12, 0), BackgroundTransparency = 1, Text = "Limited Emotes", TextColor3 = Color3.new(1, 1, 1), Font = Enum.Font.GothamBold, TextSize = 18, TextXAlignment = Enum.TextXAlignment.Left, }, main) local close = make("TextButton", { Size = UDim2.fromOffset(32, 32), Position = UDim2.new(1, -40, 0, 4), BackgroundColor3 = Color3.fromRGB(180, 50, 50), Text = "X", TextColor3 = Color3.new(1, 1, 1), Font = Enum.Font.GothamBold, TextSize = 14, }, main) make("UICorner", {CornerRadius = UDim.new(0, 6)}, close) local scroll = make("ScrollingFrame", { Size = UDim2.new(1, -24, 1, -56), Position = UDim2.fromOffset(12, 46), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 6, CanvasSize = UDim2.new(0, 0, 0, 0), AutomaticCanvasSize = Enum.AutomaticSize.Y, }, main) make("UIGridLayout", { CellSize = UDim2.fromOffset(120, 168), CellPadding = UDim2.fromOffset(10, 10), SortOrder = Enum.SortOrder.LayoutOrder, }, scroll) -- Card de cada emote local function createCard(entry, order) local card = make("Frame", { BackgroundColor3 = Color3.fromRGB(38, 38, 48), LayoutOrder = order, }, scroll) make("UICorner", {CornerRadius = UDim.new(0, 8)}, card) make("ImageLabel", { Name = "Icon", Size = UDim2.fromOffset(88, 88), Position = UDim2.fromOffset(16, 6), BackgroundTransparency = 1, }, card) make("TextLabel", { Size = UDim2.new(1, -8, 0, 18), Position = UDim2.fromOffset(4, 96), BackgroundTransparency = 1, Text = entry.Name, TextColor3 = Color3.new(1, 1, 1), Font = Enum.Font.Gotham, TextSize = 11, TextTruncate = Enum.TextTruncate.AtEnd, }, card) make("TextLabel", { Name = "Price", Size = UDim2.new(1, -8, 0, 16), Position = UDim2.fromOffset(4, 114), BackgroundTransparency = 1, Text = "...", TextColor3 = Color3.fromRGB(120, 230, 150), Font = Enum.Font.GothamBold, TextSize = 12, }, card) local buy = make("TextButton", { Size = UDim2.new(1, -16, 0, 26), Position = UDim2.new(0, 8, 1, -32), BackgroundColor3 = Color3.fromRGB(0, 140, 80), Text = "Buy", TextColor3 = Color3.new(1, 1, 1), Font = Enum.Font.GothamBold, TextSize = 12, }, card) make("UICorner", {CornerRadius = UDim.new(0, 6)}, buy) buy.MouseButton1Click:Connect(function() local character = player.Character local communicate = character and character:FindFirstChild("Communicate") if not communicate then return end local args = {{ Goal = "Gift Gamepass", GiftData = { Receiver = player.UserId, Gamepass = entry.ID, }, }} communicate:FireServer(unpack(args)) end) return card end -- Monta a grade e busca ícone/preço de cada item for i, entry in limitedList do local card = createCard(entry, i) task.spawn(function() local ok, data = pcall(MarketplaceService.GetProductInfo, MarketplaceService, entry.ID, Enum.InfoType.GamePass) if ok and data then card.Icon.Image = "rbxassetid://" .. tostring(data.IconImageAssetId or 0) card.Price.Text = data.PriceInRobux and (tostring(data.PriceInRobux) .. " R$") or "Indisponível" else card.Price.Text = "Erro" end end) end toggle.MouseButton1Click:Connect(function() main.Visible = not main.Visible end) close.MouseButton1Click:Connect(function() main.Visible = false end)