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

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

Asked by 6 years ago

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

Closed as Not Constructive by hiimgoodpack, creeperhunter76, and Andorks

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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()
0
worst way to do this. hiimgoodpack 2009 — 6y
0
fine I reprogrammed it. Inconcinnus 90 — 6y
0
Still the worst way. hiimgoodpack 2009 — 6y
0
then answer it yourself, and stop bullying me. Inconcinnus 90 — 6y
Ad