function RoomPackager.CornersOfPart(a,o)local x=o.CFrame local r=o.Size.X/2 local f=o.Size.Y/2 local Y=o.Size.Z/2 local l={RightTopBack=x:pointToWorldSpace(Vector3.new(r,f,Y)),RightBottomBack=x:pointToWorldSpace(Vector3.new(r,-f,Y));RightTopFront=x:pointToWorldSpace(Vector3.new(r,f,-Y));RightBottomFront=x:pointToWorldSpace(Vector3.new(r,-f,-Y));LeftTopBack=x:pointToWorldSpace(Vector3.new(-r,f,Y));LeftBottomBack=x:pointToWorldSpace(Vector3.new(-r,-f,Y)),LeftTopFront=x:pointToWorldSpace(Vector3.new(-r,f,-Y));LeftBottomFront=x:pointToWorldSpace(Vector3.new(-r,-f,-Y))}return l end

function RoomPackager:CornersOfPart(part)
	local cframe = part.CFrame
	local halfSizeX = part.Size.X / 2
	local halfSizeY = part.Size.Y / 2
	local halfSizeZ = part.Size.Z / 2
	
	local corners = {
		RightTopBack =		cframe:pointToWorldSpace(Vector3.new(halfSizeX, halfSizeY, halfSizeZ)),
		RightBottomBack =	cframe:pointToWorldSpace(Vector3.new(halfSizeX, -halfSizeY, halfSizeZ)),
		RightTopFront =		cframe:pointToWorldSpace(Vector3.new(halfSizeX, halfSizeY, -halfSizeZ)),
		RightBottomFront =	cframe:pointToWorldSpace(Vector3.new(halfSizeX, -halfSizeY, -halfSizeZ)),
		LeftTopBack =		cframe:pointToWorldSpace(Vector3.new(-halfSizeX, halfSizeY, halfSizeZ)),
		LeftBottomBack =	cframe:pointToWorldSpace(Vector3.new(-halfSizeX, -halfSizeY, halfSizeZ)),
		LeftTopFront =		cframe:pointToWorldSpace(Vector3.new(-halfSizeX, halfSizeY, -halfSizeZ)),
		LeftBottomFront =	cframe:pointToWorldSpace(Vector3.new(-halfSizeX, -halfSizeY, -halfSizeZ)),
	}
	
	return corners
end
