hi i need some help for my king crimson time erase. when the sound is playing i need to stop the sound whenever i press the button again. i just need a simple explanation or what to use to stop the sound while its playing
1 Like
I’m just gonna use an example of one button playing and muting the sound. Basically you would want a bool value saying something like “local Playing = true,” meaning it is playing the music. Then you would check this value to see if it is playing, and if it is and you click the button then you would set the value to false and stop the music, i’m pretty sure its “music:Stop()” then you check if the value is false to turn the music on and boom, done.
I can send a short example if you’d like.
1 Like
Example of sounds being played and stopped
local sound = script.Sound
sound:Play()
wait(1)
sound:Stop()
1 Like