I have a song and I want to transition the song with another song. But in order to do this, I need to lower down the volume while it plays until you can't hear it anymore. Any ideas on how to do that in a script?
Sounds have a property called 'Volume' 1 is basically the max volume and 0 is mute so lowering it in increments of 0.1 would be most effective. Use a loop to lower the volume gradually.
Example:
for i = 1, 10 do sound.Volume = sound.Volume - 0.1 end
To learn more about loops go here.
Heh, this should work, I am using a for loop which will repeat the code a certain amount of times:
for msound = 1, 0, -0.1 do --1 to 0, decreasing by 0.1 game.Workspace.Sound.Volume = msound --What its used on end --Ends the keyword for