# sm.gui.startFadeToBlack

Fades the screen to black and back after timeout.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.gui.startFadeToBlack( duration, timeout )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `duration` | number | Animation duration |
| `timeout` | number | Seconds until the fade fades back |
