I want to call a function whenever a certain light of SpotLight, SurfaceLight or PointLight touches a part
Looking for information on the forum, all I saw was the mention of Region3
I looked at the documentation about Region3, but did not find anything useful. Creating a light hitbox sounds problematic to me.
The question is how can you track whenever light touches an object, or are there simple ways to make light hitboxes?
You can do raycasting.
Alr the solution is to make a pyramid-shape hitbox anchored to the flashlight. Then every render step you check if there is anybody in that hitbox.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.