so, i am working on this game for my friend, which has a lot to do with sounds.. i ran into a problem when i realized that i don't know to get the name of a song that's currently playing...
how do i do it?
thanks
Okay, you can use MarketPlaceService for that.
And to get the audio id without the rbxasset:// you need to format it.
The script is:
local sound = game.Workspace.Sound --The sound local assetId = sound.SoundId --Getting the original soundId local soundId = assetId:match("%d+") --Taking away the rbxassetid:// local product = game:GetService("MarketplaceService"):GetProductInfo(soundId) --Getting the audio print(product.Name) --The Sound Name
If you have any further questions, comment.