Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

01local p0 = script.Parent.Region3Marker.p0
02local p1 = script.Parent.Region3Marker.p1
03local BossArea = Region3.new(p0.Position,p1.Position)
04 
05BossActive = false
06local Torso
07 
08 
09 
10while true do
11    print("test")
12    local checkHumanoid = workspace:FindPartsInRegion3WithIgnoreList(BossArea,{
13                        workspace.Boss.Cave,
14                        workspace.Boss.bigman},10000)
15    print(checkHumanoid)
View all 23 lines...

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:

1test
2table: 0x1787964970b079a4
3test
4table: 0x643d5921b5633ea4
5test
6table: 0x5bd54eea6da03824

How would you fix this?

Answer this question