FindPartsInRegion3WithIgnoreList not finding other parts?
Asked by
asgm 109
5 years ago Edited 5 years ago
Hey! Yes,you, I'm sure you know about Region3 :)
Let's get to the point - I'm trying to detect a player in a region3 {BossArea}, resorting to IgnoreList cause I dunno how to get the player with WhiteList and I don't want the computer to do lots of calculation thing with the regular FindPartsInRegion3. IgnoreList ignores the boss and the map. vvv
01 | local p 0 = script.Parent.Region 3 Marker.p 0 |
02 | local p 1 = script.Parent.Region 3 Marker.p 1 |
03 | local BossArea = Region 3. new(p 0. Position,p 1. Position) |
12 | local checkHumanoid = workspace:FindPartsInRegion 3 WithIgnoreList(BossArea, { |
14 | workspace.Boss.bigman } , 10000 ) |
16 | for i,parts in pairs (checkHumanoid) do |
18 | if parts.Parent:FindFirstChild( "Humanoid" ) then |
The problem is, print(checkHumanoid) works fine, while print(parts) doesn't get printed. I watched a tutorial regarding Region3 andfor i,part in pairs(Region3) do
is what is used. However, the script seem to stop at print(checkHumanoid), so after a while i get a print output like this:
2 | table: 0 x 1787964970 b 079 a 4 |
4 | table: 0 x 643 d 5921 b 5633 ea 4 |
6 | table: 0 x 5 bd 54 eea 6 da 03824 |
How would you fix this?