Why can't I detect if a sound has ended?
I've previously posted this same question but none of the answers really had results. I have tried to approach this situation two ways and they work in studio but not ingame. Using local scripts and even server scripts, neither of them were successful in running through the game.
.Ended:
1 | script.Song.Ended:connect( function () |
2 | print ( "Song has ended!" ) |
TimePosition and TimeLength
1 | if script.Song.TimePosition > = script.Song.TimeLength - 5 then |
2 | if script.Song.TimePosition > 5 then |
3 | print ( "Song has ended!" ) |
Both work in studio, neither works ingame.