I want to get a sound to loop through multiple layouts, as in to still be playing when it changes layouts
The Audio object is petty common and your going to be using it a lot. Let me encourage you read the audio section of the manual. It covers everything. Background music should be placed in the music folder for a number of reasons you find in the manual. Set the music to looping. It will continue play when you change layouts.
Develop games in your browser. Powerful, performant & highly capable.
Set it to looping and dont stop it. If you are using a OnStartOfLayout to play music then just add a subevent to see if the music is already playing.