# Game over sound

**URL:** https://forum.makecode.com/t/game-over-sound/3976
**Category:** Arcade
**Created:** [October 20, 2020, 6:56am UTC](https://forum.makecode.com/t/game-over-sound/3976 "2020-10-20T06:56:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![KaktusFilip](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@KaktusFilip](https://forum.makecode.com/u/KaktusFilip)
#### Post date: [October 20, 2020, 6:56am UTC](https://forum.makecode.com/t/game-over-sound/3976/1 "2020-10-20T06:56:45Z")

</div>

How do i change the sound that plays when i get a game over?

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [October 20, 2020, 11:36am UTC](https://forum.makecode.com/t/game-over-sound/3976/2 "2020-10-20T11:36:24Z")

</div>

Welcome to the Forum!

I don’t think you can change the game over sound, at least in blocks. ☹

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [October 20, 2020, 4:17pm UTC](https://forum.makecode.com/t/game-over-sound/3976/3 "2020-10-20T16:17:43Z")

</div>

There isn’t currently a block for it, but there’s a function in javascript!

```auto
game.setGameOverSound(false, music.baDing)
game.setGameOverSound(true, music.magicWand)

```

The boolean is for whether the sound is for a win or not; the snippet above will set it to `baDing` when the player loses, and `magicWand` when they win.
