fadeCamera
Client
Fades the screen out to a colour or back in.
bool fadeCamera(bool fadeIn [, float time = 1, int red = 0, int green = 0, int blue = 0])
Parameters
| Name | Type | Description |
|---|---|---|
| fadeIn | bool | true to fade the screen in, false to fade it out. |
| time | float | How long the fade takes, in seconds.default 1 |
| red | int | The colour's red, from 0 to 255. Only used when fading out.default 0 |
| green | int | The colour's green, from 0 to 255. Only used when fading out.default 0 |
| blue | int | The colour's blue, from 0 to 255. Only used when fading out.default 0 |
Returns
true.
Example
fadeCamera(false, 1.5)
setTimer(function()
setCameraTarget(localPlayer)
fadeCamera(true, 1.5)
end, 2000, 1)