# How to add Music

**URL:** <https://forum.makecode.com/t/how-to-add-music/7832>\
**Category:** Help\
**Created:** [May 4, 2021, 5:05pm UTC](https://forum.makecode.com/t/how-to-add-music/7832 "2021-05-04T17:05:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkabaseleb21](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@nkabaseleb21](https://forum.makecode.com/u/nkabaseleb21)\
**Post date:** [May 4, 2021, 5:05pm UTC](https://forum.makecode.com/t/how-to-add-music/7832/1 "2021-05-04T17:05:18Z")

</div>

Please help.

I want to add a track of music to my game. Music that will repeat during a level. However, the music won’t play until after all the enemies spawn on screen.

What do I do?

---

<div class="post-metadata">

**Author:** ![E-EnerG-Gamecentral](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/e-energ-gamecentral/32/5353_2.png) [@E-EnerG-Gamecentral](https://forum.makecode.com/u/E-EnerG-Gamecentral)\
**Post date:** [May 5, 2021, 7:14pm UTC](https://forum.makecode.com/t/how-to-add-music/7832/2 "2021-05-05T19:14:01Z")

</div>

Did you set a repeat forever block containing your music? This will make it play forever, except when a splash or long text appears. Hope this helped 🙂

---

<div class="post-metadata">

**Author:** ![nkabaseleb21](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@nkabaseleb21](https://forum.makecode.com/u/nkabaseleb21)\
**Post date:** [May 5, 2021, 9:26pm UTC](https://forum.makecode.com/t/how-to-add-music/7832/3 "2021-05-05T21:26:10Z")

</div>

I did, but it doesn’t play until the second level.

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [May 6, 2021, 4:51pm UTC](https://forum.makecode.com/t/how-to-add-music/7832/4 "2021-05-06T16:51:52Z")

</div>

Can you share a link to your game? (Looks like [arcade.makecode.com/example](http://arcade.makecode.com/example), not arcade.make [code.com/#editor](http://code.com/#editor))

---

<div class="post-metadata">

**Author:** ![E-EnerG-Gamecentral](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/e-energ-gamecentral/32/5353_2.png) [@E-EnerG-Gamecentral](https://forum.makecode.com/u/E-EnerG-Gamecentral)\
**Post date:** [May 6, 2021, 4:59pm UTC](https://forum.makecode.com/t/how-to-add-music/7832/5 "2021-05-06T16:59:15Z")

</div>

Can you show me the code?
