How do I get a song through it's ID

I’m wondering how I would go about getting a song through it’s song ID. I’m not sure if I should use a service that goes through the marketplace or something.

2 Likes

Go to the audio in the creator marketplace and you can find the id in the url

2 Likes

Could you specify what exactly about a song you’re trying to get through its ID?

3 Likes

What I’m aiming for is like a numbervalue that holds the song ID and through a script, it’ll find the song on the marketplace through the ID

3 Likes

you just create a script that says play(id here)

3 Likes

You can modify that script to make it play under certain conditions

4 Likes

Not sure how that would go if it was a custom song.

4 Likes

As long as you do "save to roblox by right clicking* and copy the rbx asset//:id partit should work

2 Likes

Ok, let me make it more understandable. In the game Flood Escape 2, the map making kit has a settings folder that has a numbervalue named “BGM” it holds the song ID of the song. But I wanna make it that if the song ID is found on the marketplace, then it’ll play. Sorry if that was a handful.

3 Likes

you just add sound put the id then click save to roblox and it should appear on market place

2 Likes

Aren’t all songs found on the Marketplace, just that most of them are private audios?

2 Likes

No like, what I mean is like if the player made their own song.

1 Like

search the id through creator marketplace

1 Like

Yeah, but I don’t think you will be able to play the song if you’re not the creator of the song though.

1 Like

I could in my previous game just try it out

1 Like

But what service would I use to get the song?

1 Like

Yes, that’s why Radio gamepasses broke when the Audio update came out.

You’ll just have to manually add your audio into your game.

1 Like

it doesnt even require script other than play () you just add the thing in studio that says sound and then put the id under properties.

But then, how would players be able to set their own songs? Unless thats not possible… (Own songs as in their songs they’ve made)

Just try what I said instead. It requires more energy listing how it would not working then seeing if it works or not.

1 Like