Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

how can i get product description to show in promtpurchase window prompt?[SOLVED]

Asked by 9 years ago

i made a custom gui, all it does is show the item description, image, name, and price in tix and robux for 5 seconds, at the same time prompt purchase appears. here's what i did.

put a screengui in playergui and named it store.

shirtbutton[1].MouseClick:connect(function(player)  
player = script.Parent.Parent
local store = script.Parent.Store.Frame.Frame
local image = store.Thumbnail    --imagelabel
local name = store.ItemName      --textlabel
local price = store.CurrencyAmount    --textlabel
local price2 = store.CurrencyAmount2   --textlabel
local description = store.Description    --textlabel
local asset = game:GetService("MarketplaceService"):GetProductInfo(shirtid[1])
price.Text = asset.PriceInRobux
price2.Text = asset.PriceInTickets
description .Text = asset.Description
name.Text = asset.Name
script.Parent.store.frame.Visible = true
image.Image = "http://www.roblox.com/Thumbs/Asset.ashx?width=110&height=110&assetId=" .. shirtid[1]
game:GetService("MarketplaceService"):PromptPurchase(player, shirtid[1])
wait(5)
script.Parent.store.frame.Visible = false
end)

i know how to print the item description, there's all kinds of information about printing product details, but i want it to show the details in the prompt window. i'm selling some shirts and when I'm prompt all i see is the thumbnail and the price. i would like for it to also display the description. how do i do that? do i have to make a custom gui or is there a way to make it display inside of the prompt purchase window?

0
Why not make a separate GUI appear, showing the information? alphawolvess 1784 — 9y
0
thx. that's what i had to do. it just seems logical that all the info could appear in the prompt. johnnygadget 50 — 9y

1 answer

Log in to vote
4
Answered by
Wizzy011 245 Moderation Voter
9 years ago

Sadly, you would have to make a custom Gui to do this. If you're not sure on how to get the information on the item, use: game:service('MarketplaceService'):GetProductInfo(ASSET ID).Description for the information on the product. (Similarly, you'd replace '.Description' with '.Name' for the product's name.

Ad

Answer this question