I have been trying to make music turned on by a script. used SoundService like this
game.SoundService.Escape.Playing = true wait(5) game.SoundService.Escape.Playing = false
is there a way to make a simple way to make all players hear music and be able to stop it at any time?
Hey there!
If your sound is located in
game.Workspace
do the following:
game.Workspace.Escape:Play() -- Plays sound. wait(5) -- Wait 5 seconds before stopping the audio. game.Workspace.Escape:Stop() -- Stops sound.
If this worked for you, please mark this answer as solved!
If it didn't work, let me know and I'll try to help ya!
Edit: If it didn't work, let me know where your sound is located.
try
game.SoundService.Escape:Play() wait (5) game.SoundService.Escape:Stop()