diff --git a/modules/types.lua b/modules/types.lua index 6c0fbf5..e9bfc79 100644 --- a/modules/types.lua +++ b/modules/types.lua @@ -17,7 +17,7 @@ local Sprites = {} local Rects = {} function Vector2:Lerp(newVector2, position) - return module.Vector2(myMath.lerp(self.x, newVector2.x, position), myMath.lerp(self.x, newVector2.x, position)) + return module.Vector2(myMath.lerp(self.x, newVector2.x, position), myMath.lerp(self.y, newVector2.y, position)) end function Vector2:Get()