Hello, I was making a menu, and I connected Music to it. However, even if I press the button it stills plays in the game.
Try replacing MenuAudio.Playing = false
with MenuAudio:Stop()
Tried, still not working, and there are no errors.
If MenuAudio:Stop()
does not work, then check if the audio is somehow started again from another script or if you have a duplicate audio somewhere that plays while the other stops. I really don’t know what else anyone could recommend. MenuAudio:Stop()
is the function to be used, the rest might be something with your code interfering.
It looks like another script is interfering with this script. Try making a brand new clean world and checking if it stops. If yes, its another script interfering. If no, the audio might be on loop or other.
Try MenuAudio:Pause()
. If that doesn’t work, then just do MenuAudio.PlaybackSpeed = 0
. If neither of those work, then let me know.