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

Music wont play?

I put music in my place (I even put the correct Id, and looped it) Yet it wont play! Here's the script"

S1 = game.Workspace.Sound

S1:Play()


3 answers

Make sure the soundid property looks somewhat like this: rbxassetid://(soundid) or http://www.roblox.com/asset/?id=(soundid)

ex: http://www.roblox.com/asset/?id=1337

If the sound is still being under review by the mods then it won't play.

Check the volume property and see if it's high enough to be heard, and check if it's properly in the workspace without any other sound instances.

3 comments

0

I checked everything, there is one other sound, but it's in the starter GUI

0

Hmm, is the script you're playing the sound with disabled?

0

Nope

Make sure the sound isn't removed by the mods, your sound isn't muted, the song has a volume that is over 0, and the song is playing in Workspace, or a Player, not a part.

Hi..I use a much simpler case for this so here it is First put the sound in workspace and name it Sound that way u know excacty what your talking about

game.Workspace.Sound:Play()--so what we did is we are simply using the Play() function and we are obviously using it on the sound in workspace.

Also make sure u use the Asset Id this way the sound will work and we can play it. Here are some possible solutions why it isn't working wrong id number, the sound no longer exist, your volume is all the way down, the script isn't in workspace. I hope this helped:) let me know if it did.

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