So I have been making a audio that would go from volume 1 to volume 0.
1 | script.Parent.Sound.Volume = 0.99 |
2 | script.Parent.Sound.Volume = 0.98 |
No one wants to do that
How can you make it do it smoothly and not over stress the system?
Wow, this is something a loop could do!
Let's use a for loop!
1 | local SoundObject = script.Parent.Sound |
2 | local MaxVolume = . 5 |
3 |
4 | for CurrentVolume = 0 ,MaxVolume* 10 , 1 do |
5 | wait(. 25 ) |
6 | Object.Volume = MaxVolume - CurrentVolume*. 01 |
7 | end |
This may or may not work, I haven't tested it, but it should work! :)
hydrogyn