Help! I'm trying to get the title from the SoundId in my model, Whats wrong???
1 | function GetInfo(assetId) |
2 | m = game:GetService( "MarketplaceService" ):GetProductInfo(assetId) |
3 | for i,v in pairs (m) do |
4 | script.Parent.Text = (m [ 'Name' ] ) |
5 | end |
6 | end |
7 |
8 | GetInfo(script.Parent.Parent.ScrollingFrame.Sound.SoundId) |
1 | function GetInfo(assetId) |
2 | m = game:GetService( "MarketplaceService" ):GetProductInfo(assetId) |
3 | script.Parent.Text = m.Name |
4 | end |
5 | GetInfo(script.Parent.Parent.ScrollingFrame.Sound.SoundId) |
When you request a id from the GetInfo, it returns a table. {"Name"="Blah"}