I’m new to using Region3
and I don’t quite understand how to use it (due to the lack of documentations) . Could someone point out what’s wrong with this code:
local Part1 = workspace.Part1
local Part2 = workspace.Part2
local Part3 = workspace.Part3
local Part4 = workspace.Part4
while true do
local Region = {
Region3.new(Part1.Position,Part2.Position),
Region3.new(Part3.Position,Part4.Position)
}
if workspace:IsRegion3Empty(Region[1]) == false or workspace:IsRegion3Empty(Region[2]) == false then
print("Object Detected!")
end
wait(0.1)
end