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

How would i fade out music without making everything else in the game wait?

So i tried using a simple and easy method:

trackl:Play() wait (15) --how long to wait until it needs to fade out trackl.Volume=0.9 wait(.3) mosik.Volume=0.8 wait(.3)

and so on... but because im using wait it pauses everything in the scripya know..

is there a way to do it without making everything in the script wait?

1 answer

Yes there is and the simplest way would be to use Spawn usage example here.

Example only:-

spawn(function()
	trackl:Play() 
	wait (15)
	trackl.Volume=0.9
	wait(.3)
	mosik.Volume=0.8
	 wait(.3)
end)

I hope this helps.

1 comment

0

Thanks it helped! But how do i make the fade smooth?

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