Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

GetInfo with a SoundId?

Help! I'm trying to get the title from the SoundId in my model, Whats wrong???

function GetInfo(assetId)
m = game:GetService("MarketplaceService"):GetProductInfo(assetId)
for i,v in pairs(m) do
	script.Parent.Text = (m['Name'])
	end
end

GetInfo(script.Parent.Parent.ScrollingFrame.Sound.SoundId)

1 answer

function GetInfo(assetId)
	m = game:GetService("MarketplaceService"):GetProductInfo(assetId)
	script.Parent.Text=m.Name
end
GetInfo(script.Parent.Parent.ScrollingFrame.Sound.SoundId)

When you request a id from the GetInfo, it returns a table. {"Name"="Blah"}

This discussion is preserved as it was. New answers, comments, and votes are closed.