From 6b1b9df8e823b6958e36b5a83fc4c119232d2d49 Mon Sep 17 00:00:00 2001 From: mkargus <14226603+mkargus@users.noreply.github.com> Date: Tue, 4 Jun 2024 12:22:46 -0400 Subject: [PATCH] Fixed parts with a mesh with negative scale --- src/Util/TerrainUtil.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/TerrainUtil.lua b/src/Util/TerrainUtil.lua index ad1907e..2660b3c 100644 --- a/src/Util/TerrainUtil.lua +++ b/src/Util/TerrainUtil.lua @@ -42,7 +42,7 @@ function TerrainUtil:GetPartInfo(part: BasePart): (string, CFrame, Vector3) -- If the part has a mesh parented to it, then use the mesh shape instead if obj then cframe += part.CFrame:VectorToWorldSpace(obj.Offset) - size *= obj.Scale + size *= obj.Scale:Abs() if obj:IsA('SpecialMesh') then if obj.MeshType == Enum.MeshType.Cylinder then