#TopBarPlus Help!

3 messages · Page 1 of 1 (latest)

cunning fox
#
local Icon = require(game:GetService("ReplicatedStorage").Icon)
local icon = Icon.new()
icon:setImage(14181326557)
icon:setLabel("Settings")
icon:setTip("In-Game Settings")
icon:setDropdown({
    Icon.new()
    :setLabel("Category 1")
    ,
    Icon.new()
    :setLabel("Category 2")
    ,
    Icon.new()
    :setLabel("Category 3")
    ,
    Icon.new()
    :setLabel("Category 4")
})

local MarketplaceService = game:GetService("MarketplaceService")
local Player = game.Players.LocalPlayer

local Icon = require(game:GetService("ReplicatedStorage").Icon)

local icon = Icon.new()
icon:setImage(14194942170)
icon:setLabel("Shop")
icon:setTip("Gamepasses")

local category1Icon = Icon.new()
category1Icon:setLabel("Party Emotes")
category1Icon:setImage(14192642937)
category1Icon:bindEvent("selected", function()
    category1Icon:deselect()
    MarketplaceService:PromptProductPurchase(Player, 215747258)
end)

local category2Icon = Icon.new()
category2Icon:setLabel("Toxic Emotes")
category2Icon:setImage(14192577847)
category2Icon:bindEvent("selected", function()
    category2Icon:deselect()
    MarketplaceService:PromptProductPurchase(Player, 215748006)
end)

icon:setDropdown({
    category1Icon,
    category2Icon
})

local Icon = require(game:GetService("ReplicatedStorage").Icon)
local icon = Icon.new()
icon:setImage(14181519840)
icon:setLabel("Emotes")
icon:setDropdown({
    Icon.new()
    :setLabel("Category 1")
    ,
    Icon.new()
    :setLabel("Category 2")
    ,
    Icon.new()
    :setLabel("Category 3")
    ,
    Icon.new()
    :setLabel("Category 4")
})
#

So, When I click purchase it gives me a error message is it anyway this can fix?