Skip to content

Commit 4505987

Browse files
committed
fix: Fix direction utils luau-lsp
1 parent 7672b52 commit 4505987

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/humanoidmovedirectionutils/src/Client/HumanoidMoveDirectionUtils.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ function HumanoidMoveDirectionUtils.getRelativeMoveDirection(cameraCFrame: CFram
4949
direction = direction + add
5050
end
5151
end
52-
if direction.magnitude > 0 then
53-
return (relative + direction.unit).unit
52+
if direction.Magnitude > 0 then
53+
return (relative + direction.Unit).Unit
5454
end
5555

5656
return relative

src/humanoidteleportutils/src/Shared/HumanoidTeleportUtils.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ function HumanoidTeleportUtils.teleportParts(
113113

114114
local relCFrame = {}
115115
for _, part in parts do
116-
relCFrame[part] = rootPartCFrame:toObjectSpace(part.CFrame)
116+
relCFrame[part] = rootPartCFrame:ToObjectSpace(part.CFrame)
117117
end
118118

119119
relCFrame[rootPart] = nil
120120

121121
for part, relative in relCFrame do
122-
part.CFrame = newRootPartCFrame:toWorldSpace(relative)
122+
part.CFrame = newRootPartCFrame:ToWorldSpace(relative)
123123
end
124124

125125
rootPart.CFrame = newRootPartCFrame

0 commit comments

Comments
 (0)