FindPartsInRegion3 (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Legend26
(Added some information)
mNo edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{NonStandard|reason=Region3 was added in April 2011.}}
<onlyinclude>{{Method
<onlyinclude>{{Method
|name                = FindPartsInRegion3
|name                = FindPartsInRegion3
|arguments            = [[Region3]] '''region3''', [[Instance]] '''ignore''', [[int]] '''maxParts''' = 20
|arguments            = [[Region3]] <var>region</var>, [[RBX.lua.Instance (Object)|Instance]] <var>ignoreDescendentsInstance</var>, [[int]] <var>maxParts</var> = 20
|returns              = [[table]]
|returns              = [[table]]
|description          = Returns a table filled with parts inside the Region3.
|description          = Returns a table filled with parts inside the [[Region3]].
|object              = Workspace
|object              = Workspace
}}</onlyinclude>
}}</onlyinclude>
Line 12: Line 14:
==Usage==
==Usage==


* The maxParts limit can range from 0 to 100 and is 20 by default.
* The <var>maxParts</var> limit can range from 0 to 100 and is 20 by default.
* Descendants of the 'ignore' argument are not returned in the table, but still count towards the maxParts limit.
* Descendants of the <var>ignoreDescendentsInstance</var> argument are not returned in the table, but still count towards the maxParts limit.
* If the number of parts inside the Region3 are higher than the maxParts limit, then those extra parts will not be returned in the table.
* If the number of parts inside the [[Region3]] are higher than the <var>maxParts</var> limit, then those extra parts will not be returned in the table.
 
==See Also==
*[[File:Function Icon.png]][[FindPartsInRegion3WithIgnoreList (Method)|FindPartsInRegion3WithIgnoreList]]


[[Category:Methods]]
[[Category:Methods]]

Latest revision as of 15:58, 18 November 2023

Ouch!
The following article, FindPartsInRegion3 (Method), mentions a feature exclusive to certain versions of the client.
Specifically: Region3 was added in April 2011.


FindPartsInRegion3( Region3 region, Instance ignoreDescendentsInstance, int maxParts = 20 )
Returns table
Description: Returns a table filled with parts inside the Region3.
Member of: Workspace



Usage

  • The maxParts limit can range from 0 to 100 and is 20 by default.
  • Descendants of the ignoreDescendentsInstance argument are not returned in the table, but still count towards the maxParts limit.
  • If the number of parts inside the Region3 are higher than the maxParts limit, then those extra parts will not be returned in the table.

See Also