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

How to get Thumbnails/Icons/Game names/Sound name out of an Id?

Asked by 8 years ago

I'd like to know how to get this stuff out of both SounId and PlaceId. Thanks already!

1 answer

Log in to vote
1
Answered by 8 years ago

Using MarketplaceService is the way to go! This is the way you get product names from their ID's (only works for products like Hats, Clothes, Audio, Plugins, etc.;

local MPS=game:GetService("MarketplaceService")
local id=19398258 --Sword pack (most favorited, lol)

local info=MPS:GetProductInfo(id)

print(info.Name..' : '..info.Description)

*Edit; works for games too, just checked.

Ad

Answer this question