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

How do i print the product name of an asset?

Asked by
1envo 0
4 years ago

game:GetService("MarketplaceService"):GetProductInfo()

I am trying to get the name of the profuct etc an audio

local asset = "4160448491" game:GetService("MarketplaceService"):GetProductInfo(asset)

What would i do after that to print it? thx

1 answer

Log in to vote
0
Answered by
VitroxVox 884 Moderation Voter
4 years ago
Edited 4 years ago

Hello, this is the script you wanted:

local Asset = game:GetService("MarketplaceService"):GetProductInfo(4160448491)
print(Asset.Name)

But i'll link you a source that's really useful and you should use it:

ROBLOX SOURCE

, it shows you a list of variables and the return values it can do.

if it worked please accept, thank you.

0
looks about right jorcorrs 76 — 4y
Ad

Answer this question