Proximity-Based Screen Darkening Effect (?)

I’m not entirely sure if this is the right section, but I think it’s related to code, so here it goes. I’m creating an aura effect for a player and wanted to implement an idea. Let’s say Player A has this aura activated, and then we have Player B. The closer Player B gets to Player A, the darker Player B’s screen will become. How can I implement this effect?

  1. Run a loop.
  2. Get all player characters.
  3. Compare distances.
  4. Apply effect based on distance.
1 Like

Oh, okay, thanks. One last question: how do I create the effect? Should I darken the screen by just editing the light parameter?

It’s up to you how you want it. You can change Lighting settings, create post-processing effects, and/or overlay a Gui.

1 Like

ok, tysm for the help, that was fast

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.