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

FindPartsInRegion3 not working properly?

Asked by 5 years ago

``

            local rr = Region3.new(char.Head.Position, char.Head.Position + Vector3.new(1050,1050,1050))
            local zz = workspace:FindPartsInRegion3(rr,nil,50)
            for i,v in pairs(zz) do
                print(v.Name)
            end

``

im trying to see if any parts are near the chars head but it only gets the parts inside the character even if i change the 1050 it still has the same effect i have changed the 2nd argument of findpartsinregion3 to char but it doesnt return anything then

0
have you tried making a part to represent the region? theking48989987 2147 — 5y
0
cause the minimum position of the region is the position of the head theking48989987 2147 — 5y

Answer this question