Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Official Documentation of "RegionPartService" by T3_MasterGamer
- RegionPartService:IsPartInRegion(region: BasePart|Region3, partOrModel: BasePart|Model, regionParams: Region3Params|OverlapParams?): boolean
- -- the function "IsPartInRegion" consists of three parameters: region, partOrModel, and regionParams. this functon returns a boolean whether the "partOrModel" is inside the "region" using the "regionParams".
- -- the "region" parameter must either be a BasePart or a Region3, else it will error.
- -- the "partOrModel" paramater, as its name says, must either be a BasePart or a Model.
- -- the "regionParams" parameter is optional, meaning you can leave it blank (nil) or setting its value. this must either be OverlapParams (for BaseParts), Region3Params (for Region3), or nil (by default).
- Region3Params = {
- filterType = ("Blacklist" or "Whitelist" or nil),
- descendantsTable = {Instance},
- maxParts = number or #descendantsTable or nil
- }
- -- Region3Params is a table that consists of "filterType", "descendantsTable", and "maxParts".
- -- "filterType" is optional, either "Blacklist", "Whitelist", or nil (nil by default).
- -- "descendantsTable" is a table that consists of Instances (more specifically BaseParts/Models) that will either be ignored (Blacklist/nil) or will only be included in the operation (Whitelist).
- -- "maxParts" is also optional, either a number or nil (nil is #descendantsTable by default). this is the number of parts (in descendantsTable) will only be included in the operation.
- RegionPartService:isPartInRegion()
- -- is the same as RegionPartService:IsPartInRegion()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement