# sm.game.exitToMenuWithEndCredits

Exits to the main menu and requests the end-game credits sequence to play once there.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.game.exitToMenuWithEndCredits(  )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.game.md#exittomenuwithendcredits)
