on sfx sname do if !home.widgets.nosound.value play[sname] end end on stop_music do play[0 "loop"] MEMORY["current_song"].text:"none" end on music_stop do stop_music[] end on play_music mname do if !home.widgets.nomusic.value play[mname "loop"] MEMORY["current_song"].text:mname else stop_music end end