Sound Effect Not Working Properly?

So, okay, the SFX is not working badly, or wrongly in anyway. I’m just trying to get it where if I press a button the sound plays, and if I click the button again to turn, whatever the button was for, off, I also want the SFX to turn off, but the problem is my SFX is longish so it doesn’t turn off until it is finished playing. Who can I fix this? Here is my code:
So when light 2 equals on then the sound effect should play, but when light 2 is off, it should immediately turn off, but it doesn’t.

1 Like