Just a tip: u should make it the same button for toggling it on/off
This helps player ease of use and it will also get rid of your problem where u keep spawning new platforms every time we left click, making it laggy
easily done with a boolean called smth like musicOn, that u toggle every time they click. and use that to switch the platforms
if u like the controls how they are, u can add booleans checking if they already clicked that button, and only let them make new platforms if they haven't, thus stopping them from overloading the game with infinite platforms