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

how do i get music to stop when my intro stops?

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

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()

4 comments

0

worst way to do this.

0

fine I reprogrammed it.

0

Still the worst way.

0

then answer it yourself, and stop bullying me.

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