Hey there! I’m trying to make the player teleport into the direction they are moving. Here’s what I’ve tried so far:
(Server Script)
local direction = (humanoidRootPart.Position - moveDirection).Unit
print(direction)
humanoidRootPart.Position = humanoidRootPart.Position+direction*10
moveDirection is humanoid.MoveDirection.
It just teleports me into unexpected directions, even when i do -direction. Is there a better way to get the player to teleport into the direction they are walking?