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

How to make music play then fade out?

Play an audio/sound at the beginning then have it gradually fade away.

wait(3)
game.Workspace.Sound:Play()

That is all I have

1 answer

What you can use is a for loop with the volume:

wait(3)
game.Workspace.Sound:Play()
wait(timeyouwantittoplaynormally)
for i = 1,100 do
	wait(0.1) --Fades away taking 10 seconds
	game.Workspace.Sound.Volume =  1- (i/100)
end

6 comments

0

It just stops it abruptly. :I

0

Try it now.

0

Same thing happens, I was watching the sound and the volume goes up then it goes to zero.

0

Oops, here try it now.

0

Works perfect, thanks! After looking over it it makes some sense, I learned something :D

0

Good!

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