When player is touching a part it turns GlobalShadow off

I want to make it so that when a player is touching a part GlobalShadow goes off and when they are not touching no more it goes on in a local script

image

You shouldn’t really use TouchedEvents for stuff like this, it’s really inconvenient and sometimes Glitchy, depending on how you use it… it’s just overall unreliable for tasks like this.

What you should do instead, is use :GetPartsBoundsInBox() OR use :GetPartsinPart() which returns a table of BaseParts that is overlapping the area/is inside the Area… when you do this, make sure when you input the Size, add 0.1 or 0.5 studs more than the original Part Size.

1 Like

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