Help with a "camera based lighting system"

Currently, I have a system (making use of the “ZonePlus” module) to detect players changing and moving through a series of zones throughout my game based on character model movement… however with some updates I am working on, this can no longer stay as being based off of the player’s characters position and instead needs to be using the player’s camera.

What is the best way of approaching this?

Right now I am assuming detecting the camera’s CFrame changing and comparing the camera to the zone parts is the way forwards, however I’d like to check with people that actually know what they’re talking about for better more efficient ways to do so.

camera cframe position should be enough, what do you mean?

I am not by any means a programmer, so I thought i’d be better off asking about it before wasting a lot of my own time doing something that would just be wrong :man_shrugging:

You’d likely have to modify the module for your needs. Adding something like cameraEntered/cameraExited as a feature. As a workaround you could attach a part to the camera and use partEntered/partExited.

1 Like

best way to learn is to do wrong, stupid things :+1:

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