How to Make One Button That Turns Music ON and OFF

Essentially I’m wanting one button that can turn music ON and OFF rather than having two buttons to play and stop the music. Just not sure how to do this. My code is below…

1 Like

You could do something like this

Awesome that worked perfectly. Thank you!

1 Like

Yes. You can do that, but you do not need the two looping wires. That works, but I just wanted to mention it. :slight_smile:
image

I thought that would cause it to flip before it entered the toggle, is that not the case? As an afterthought if it did you could just start at 2.

Also you are able to click on the behavior and have it start at two if you want

2 Likes