Hi! Any ideas why I am not hitting the part in the way?
local RunService = game:GetService("RunService")
local dr = workspace.dr
local part = workspace.Part
RunService.Stepped:Connect(function(time, step)
local delt = (part.Position - dr.Position).Unit
dr.Position = dr.Position + delt * step * 10
local min = dr.Position + Vector3.new(-dr.Size.x/2, -dr.Size.y/2, dr.Size.z/2)
local max = dr.Position + Vector3.new(-64, dr.Size.y/2, -dr.Size.z/2)
local region = Region3.new(min, max)
--region = region:ExpandToGrid(4)
local parts = workspace:FindPartsInRegion3(region, dr) -- ignore part
print(#parts)
--[[
for n = 1,#parts,1 do
if parts[n].Name ~= 'Baseplate' then
print(parts[n].Name)
end
end--]]
end)
RegionTOuch.rbxl (29.0 KB)