local r=sound.Volume for X=1,10,1 do sound.Volume=r*(1-X/10)wait(FADE_TIME/10)end sound:Stop()print("\102\097\100\101 \111\117\116")
-- Fade out the sound over FADE_TIME seconds.
local startVolume = sound.Volume
for i = 1, 10 do
	sound.Volume = startVolume * (1 - i / 10)
	wait(FADE_TIME / 10)
end
sound:Stop()
print("fade out")
