Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make music play in play mode?

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago

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.

Ad
Log in to vote
-2
Answered by 9 years ago

try this

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

Answer this question