I'm trying to make a placement system, but I keep getting this error when using :FindPartsInRegion3withIgnoreList()
Here's the part of the script I think that is causing the problem:
local hb = model.HitBox
local region3 = Region3.new(
Vector3.new(
hb.Position.X-2,
hb.Position.Y-3.5,
hb.Position.Z-2.5
),
Vector3.new(
hb.Position.X+2,
hb.Position.Y+3.5,
hb.Position.Z+2.5
)
)
local partsinRegion = workspace:FindPartsInRegion3WithIgnoreList(region3, model, 100)
local function p()
print(tostring(partsinRegion[1]))
end
pcall(p)
-- just to test to see if it returns an object

6 comments
same ansver as dragon lord but upvote cuz u tried :D
PFFF I was first.
Wait a minute, I literally said the answer in the community chat, anyone could've copied and pasted that here...
I just realised I have no cool down when it comes to making comments and questions
Hola!
Ty lol