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

How do I make music play in play mode?

I have a problem where I have a script that is supposed to play music. When I tested it on Roblox Studio it worked fine. Now in play mode in a server, it isn't working! Help!?

playmusic = game.SoundService.Floodwater
-- Variables

playmusic:play()
wait(10)
playmusic:stop()

This is working perfectly on test, not in play mode, remember that.

2 answers

✓ Accepted answer

If you use a localscript add a wait(.5) at the first top, or first line, of the script. This allows for the player to load first instead of the script starting before the player inherits it.

try this

playmusic = game.SoundService.Floodwater
-- Variables
wait(3)
playmusic:play()
wait(10)
playmusic:stop()

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