generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: What is the most efficient way of...

Previous Thread :: Next Thread 
EXYZED is not online. 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
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
29 Apr 2017 07:15 AM
Make a part enclosing the region and use the .Touched event.


Report Abuse
EXYZED is not online. 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 is online. 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 is not online. EXYZED
Joined: 09 Nov 2013
Total Posts: 533
29 Apr 2017 07:24 AM
Thanks :)
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
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 is online. AxonMega
Joined: 29 Aug 2014
Total Posts: 2403
29 Apr 2017 07:35 AM
true-true
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image