function RoomPackager.CornersOfPart(Q,F)local h=F.CFrame local q=F.Size.X/2 local z=F.Size.Y/2 local o=F.Size.Z/2 local y={RightTopBack=h:pointToWorldSpace(Vector3.new(q,z,o)),RightBottomBack=h:pointToWorldSpace(Vector3.new(q,-z,o)),RightTopFront=h:pointToWorldSpace(Vector3.new(q,z,-o)),RightBottomFront=h:pointToWorldSpace(Vector3.new(q,-z,-o));LeftTopBack=h:pointToWorldSpace(Vector3.new(-q,z,o));LeftBottomBack=h:pointToWorldSpace(Vector3.new(-q,-z,o));LeftTopFront=h:pointToWorldSpace(Vector3.new(-q,z,-o));LeftBottomFront=h:pointToWorldSpace(Vector3.new(-q,-z,-o))}return y 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
