I am looking for the best way to check if my model is inside a specific area. I found out about region3s. I was wondering if it is possible to check if something is inside a region3 and if so how would I do that?
✓ ANSWER ACCEPTED
Is it possible to check if something is inside a region3?
1 answer
✓ Accepted answer
local parts = workspace:FindPartsInRegion3(region3Name, ignoreList, maxNumberOfPartsToIndex)
if table.find(parts, Part) then
print("Part found")
end
Remember to check the documentation first.
https://developer.roblox.com/en-us/api-reference/datatype/Region3
Specifically in that page it links to here:
https://developer.roblox.com/en-us/api-reference/function/WorldRoot/FindPartsInRegion3
This discussion is preserved as it was. New answers, comments, and votes are closed.
