Help with making camera limited to a few feet

I am making a story game and, just like every other story game, there will be a monster chasing the players.

To make it more scary, I want to add something were the players can only see a few feet ahead of them before it fades into blackness, like this picture:


I tried looking on the DevForum already, but either I coudnt find the right words or there aren’t any topics on this.
Thank you!:wave:

Use fog, which is an attribute of Lighting

1 Like
local Lighting = game.Lighting

Lighting.FogEnd = 20
Lighting.FogStart = 0
Lighting.FogColor = Color3.fromRGB(0, 0, 0)

Alright, I’ll go try these out…

Thanks a lot! It worked very well!

1 Like

Hey, is it possible to undo the fog for one player at a time, like through the client instead of the whole server at once? Sorry if I didn’t phrase that well

game.Lighting.FogEnd=1000

should work probably

Lol, thats not what I meant. But whatever, I figured it out already. Thanks anyways!