#Help pls it doesn't work

9 messages · Page 1 of 1 (latest)

wild gulch
#

I have this script inside a NPC that follows certain waypoints, the NPC is called Teacher and Inside the Head it has SurfaceLight property with angle of 135, 40 brightness and range of 15, and inside SurfaceLight there is this script I provided in the image, but it doesn't work

#

The script is supposed to make it so when the players pull out the tool called Phone and if the surfacelight of the teacher touches them it will kill them

spice wolf
#

So, SurfaceLight is NOT a solid part, and ".Touched" works only with Solid Parts

#

@wild gulch

wild gulch
#

oh

#

i kinda changed the code

#

now it detects the tool when the players pull the phone out and it has a script to disable the detector