# sm.gui.endFadeToBlack

Fades the screen back from a fade to black.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.gui.endFadeToBlack( duration, force? )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `duration` | number | Animation duration |
| `force` *(optional)* | boolean | If true, start the fade out from full black even if there was no fade to black active. (Defaults to false) |
