Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how to limit vision when walking into a certain area?

say my player walks into a certain invisible brick, how could I make it so that his vision is limited while inside it?

edit: I got a good answer but I guess I should've been more specific, think of it as fog.

2 comments

0

Limited? Like the CameraMaxZoomDistance or the Field of view?

0

think of it as fog

1 answer

if you mean make everything dark, you will have to:

  1. turn off all lighting in that area so it’s pitch black, locally or on the server you can decide
  2. add a light source inside of the character, locally. then it will seem like they can only see a certain distance and the light from other players won’t affect them.

1 comment

0

I was hoping for something that could make the surroundings foggy, but thanks for giving your take.

This discussion is preserved as it was. New answers, comments, and votes are closed.