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

How could I make a script detect if a spotlight is hitting a part?

I have a flashlight with a spotlight on the end, emitting light, but I would like a script to be able to detect when the light from the spotlight has hit a part.

Thank you, Cylocx

1 answer

✓ Accepted answer

I would attach a wielded brick to the end of the flashlight. And when that brick enters the "magnitude of the other part". Something happens.

Magnitude-Magnitude is like a invisible sphere and when something enters the radius it triggers something.

Attaching to the light-Just the brick to the front end of the flashlight.

1 comment

0

Ah, thank you! After I posted the question, that's what I did, thanks!

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