how do i get music to stop when my intro stops? i put music in my intro and when my intro fades out my music is still playing
COMMUNITY QUESTION
how do i get music to stop when my intro stops?
1 answer
I think this should work, make sure it's a local script so no one else hears the sound or it doesn't stop pre maturely for others.
local sound = game.Workspace.Sound --defines your sound, change it.
local volume = sound.Volume
local intro = true --turn to false when intro is done
sound:Play()
-- intro
intro = false
while intro do wait() end
for i=0,sound.Volume,0.25 do
sound.Volume = i
wait(.75)
end
wait(volume)
sound:Stop()
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
worst way to do this.
fine I reprogrammed it.
Still the worst way.
then answer it yourself, and stop bullying me.