local target,pos,norm = nil
function UpdatePosition()
local ignoreList = {}
if circle ~= nil then
table.insert(ignoreList,circle)
end
local mouseRay = mouse.UnitRay
local newRay = Ray.new(mouseRay.Origin, mouseRay.Direction.Unit * 10000)
target, pos, norm = workspace:FindPartOnRayWithIgnoreList(newRay, ignoreList)
end
UpdatePosition()
local endPos = pos + (norm * (part.Size * 0.5))
Part.Position = endPos
i want to make the blocks offset with rotation properly, in this image, the blocks offset properly
but as soon as i add rotation into the mix, it messes up the placement