EXYZED
|
  |
| Joined: 09 Nov 2013 |
| Total Posts: 533 |
|
|
| 29 Apr 2017 07:14 AM |
Detecting if a Player's torso is inside a specified area (Box not magnitudinal) (Trying to make a local Sound Service so that players get difference in ambience when entering areas)
It would be really helpful if you can reference wiki sections and etc. |
|
|
| Report Abuse |
|
|
|
| 29 Apr 2017 07:15 AM |
Make a part enclosing the region and use the .Touched event.
|
|
|
| Report Abuse |
|
|
EXYZED
|
  |
| Joined: 09 Nov 2013 |
| Total Posts: 533 |
|
|
| 29 Apr 2017 07:17 AM |
Ah, may be applicable. But I'm looking for something which is very co-ordinate based.
N.B player leaving the area will be a factor to it. |
|
|
| Report Abuse |
|
|
AxonMega
|
  |
| Joined: 29 Aug 2014 |
| Total Posts: 2403 |
|
|
| 29 Apr 2017 07:22 AM |
http://wiki.roblox.com/index.php?title=API:Region3
http://wiki.roblox.com/index.php?title=API:Class/Workspace/FindPartsInRegion3
Note: the X, Y, and Z coordinates of the Region3's second Vector3 must be greater than the X, Y, and Z coordinates of the first Vector3. |
|
|
| Report Abuse |
|
|
EXYZED
|
  |
| Joined: 09 Nov 2013 |
| Total Posts: 533 |
|
| |
|
|
| 29 Apr 2017 07:26 AM |
The reason I didn't suggest that is because you'd have to constantly check, which may or may not be inefficient.
|
|
|
| Report Abuse |
|
|
AxonMega
|
  |
| Joined: 29 Aug 2014 |
| Total Posts: 2403 |
|
| |
|