Is there any way to manually create darkness?

I want to create some kind of darkness in a script I’m making a sort of 2d game and when the player has their back turned I want to manually create darkness all behind them. Is this possible? Or achievable in any way with particles, parts, or lighting effects?

You can use:

Smoke particles with their color set to black.
Fog with it’s color set to black.

2 Likes

In the Lighting service you can enable fog & give it a darker color.

https://developer.roblox.com/en-us/api-reference/property/Lighting/FogStart
https://developer.roblox.com/en-us/api-reference/property/Lighting/FogEnd
https://developer.roblox.com/en-us/api-reference/property/Lighting/FogColor

2 Likes