How do you get the price of an item by using its Id in a script?

Hello, I am wondering how do I get the price of a T-shirt from its Id from a script?

you can use GetProductInfo it also return a lot of other infos try checking it on the link

i dunno if theres only for robux

but this function also get the item price or robux

local MS = game:GetService("MarketplaceService")

local AssetId = 0000000000 -- The Item Here (Id)

local Asset = MS:GetProductInfo(AssetId)

print(Asset.PriceInRobux)
1 Like