Syntropy
|
  |
| Joined: 16 Mar 2009 |
| Total Posts: 2272 |
|
|
| 28 May 2016 02:01 AM |
Maybe I'm stupid but:
local box = Region3.new(script.Parent.Part1.Position, script.Parent.Part2.Position) while true do wait(2) local parts = game.Workspace:FindPartsInRegion3(box, script.Parent) print(#parts) end
-------
local topCorner = script.Parent.TopCorner.Position --note its the position local bottomCorner = script.Parent.BottomCorner.Position local region3 = Region3.new(bottomCorner, topCorner) --create virtual box from bottomCorner to topCorner while true do wait(2) local partsFound = workspace:FindPartsInRegion3(region3, script.Parent) --find in region3, ignoring this model's parts print(#partsFound, "in region:") end
These are the exact same script under the same environment, but the bottom one functions and the top one spits out 0 no matter what. |
|
|
| Report Abuse |
|