I want to know if there's a function or method to find if there is a part at a given position. I know you could create a part and check if it's touching anything, but that seems inefficient. Any ideas?
You can use Region3.
Use the Region3.new
constructor to create your region. Use the FindPartsInRegion3
function of workspace to get any object located inside of it.
Example;
local region = Region3.new(Vector3.new(0,0,0),Vector3.new(10,10,10)) local parts = workspace:FindPartsInRegion3(region) for _,v in next,parts do print(v:GetFullName()) end