So, I want to make Textbuttons on my game automatically update to the current price of the devproduct so I don’t have to change them myself. However im having some issues here.
Im asking the script to print the price in robux but it outputs
5 when the price is
I have tried this with other devproducts aswell and then I got a
local MS = game:GetService("MarketplaceService")
local AssetId = 1547731272
local Asset = MS:GetProductInfo(AssetId)
It must be set to that in the object being sold. I checked and it is. You set the price in the menu on the object. This menu …
Huh, I see its a shirt…
Do you know how can I get price of dev products?
All I know is you set the price from that menu …
Yeah but I don’t own that shirt.
I’m trying to get a price from dev product, not a shirt
These links should help you.
what @2112Jay means is that you set the asset id in your script to that of the shirt rather than what oyu want…
I know, but now my question is how do I get the prices for developer products, not shirts. I have no clue on how to do this.
use the first link in @desinied 's post
(sorry for the ping)
I have already read the links before creating the script.
I can’t really find what i’m looking for (unless my eyes slipped over it)
here is the code the first link mentions
local MarketplaceService = game:GetService("MarketplaceService")
local productId = 000000 -- Change this to your developer product ID
local productInfo = MarketplaceService:GetProductInfo(productId, Enum.InfoType.Product)
local success, productInfo = pcall(function()
return MarketplaceService:GetProductInfo(productId, Enum.InfoType.Product)
if success then
-- Use productInfo here!
product info is a list,
, as mentioned in the second link. as seen in the screenshot, you can use
to get the price of the gamepass/dev item
these two resources together should be enough for you to finish your script
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.