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

How do you change a TextLabel's Text to a Audio Name?

So, I was making a music player and wondered how do I change the TextLabel's Text into the Audio name.

Example: NowPlaying: "audioid"(Converts into AudioName)

What I am not talking about is like when the song is played in a certain cycle, that is not what I am doing. It's where people make requests and the TextLabel gets the AudioID to convert it to the AudioName.

1 answer

✓ Accepted answer

There is very simple catalog API to do this. You should use MarketplaceService, which has the useful function GetProductInfo. In example:

local songName = game:GetService('MarketplaceService'):GetProductInfo( tonumber(songId) ).Name

Good luck!

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