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

is it possible to prevent regions from going through walls?

Is there a way to prevent regions going through walls? cause I am attempting to make a stealth game, and the NPCs use the region to see if there are players around them, but since regions can go through walls, you could be hiding but an NPC will still see you, please help or recommend other ways I can do this.

1 answer

Instead of using regions, I would use a beam. http://wiki.roblox.com/index.php?title=API:Class/Beam Then create a script that will detect if the beam is being interrupted, and then check if the obstructing object has a humanoid. If the obstructing object does contain a humanoid, then the script will then follow through with the desired functions of the npc sensing a player.

1 comment

0

beams dont have a touch..

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