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

Retrieving name of audio from sound?

Asked by 8 years ago

Just say there's an audio in the ROBLOX library called 'Audio1' and I play it in a Sound in my place, how do I get the name of it from in-game? For example, changing the text of a gui to the name ["Audio1"]. Is it something to do with HttpService?

1 answer

Log in to vote
0
Answered by 8 years ago

I can't test this right now, but this should work nicely:

local data = game:GetService( "MarketplaceService" ):GetProductInfo( soundID )
local name = data.Name
0
Thank you! OfficialAndrew 45 — 8y
Ad

Answer this question