of     1   

QuillStrike
#140899152Sunday, July 20, 2014 12:59 AM GMT

In a tournament game I have, when a map loads a song will play. The song starts just fine when the map is cloned and put in the workspace, however when the round ends and the map is removed the song continues to play. How can I fix this? I'm still fairly new to Lua. Here's the script inside the sound. local song = script.Parent local Model = script.Parent.Parent if Model.Parent == game.Workspace then song:Play() else song:Stop() end
PalmToFace
#140899292Sunday, July 20, 2014 1:00 AM GMT

use da chnged evnt an use detryo nawt remve
iimerkingalaxy
#140903163Sunday, July 20, 2014 1:40 AM GMT

local song = script.Parent local Model = script.Parent.Parent while wait(.1) do song:Play() wait(120) song:Stop() end
iimerkingalaxy
#140903322Sunday, July 20, 2014 1:42 AM GMT

just put the script in the map model or disable and enable
PalmToFace
#140903330Sunday, July 20, 2014 1:42 AM GMT

@ii -plm 2 fce- obvsly nawt al rnds r gun 2 b 120 scnds
QuillStrike
#140904858Sunday, July 20, 2014 1:58 AM GMT

I was using wait(120) in the beginning, but the audio will sometimes start at different times for different players. So it will continue to play into the next round, and also start the next song. So players we're hearing two songs at once. I need another way to stop the music at the end of a round! D:
Lacryma
#140905807Sunday, July 20, 2014 2:08 AM GMT

you will need to do stop() when wanting 2 actually play, and use play() to stop the song

    of     1