Property SoundId of sound wont fill?

Hello Developers! :wave:

I have a script that you enter the music id and it’ll play. But it somehow wont work.
Code:

Error:

Screenshot (91)

Video: robloxapp-20210301-1620103.wmv (982.0 KB)

It’s printing Success but I don’t hear it. Any response is appreciated! :grinning:

Did you upload the audio to Roblox recently? If so, it takes some time for the audio to be uploaded completely and for it to load in games.

1 Like

SoundId needs to be a valid ContentId. If you’re just typing the id in the box and then immediately giving that to SoundId, it won’t work. Prefix the SoundId with rbxassetid:// for it to work.

newSound.SoundId = "rbxassetid://" .. musicCodeBox.Text
2 Likes

It was made roblox a while ago, so it is uploaded.

Thanks so much! It worked!!! :grinning: