Hand held teleporter stops momentum ( probably a easy fix but i'm stoopid )

  1. What do you want to achieve? A simple tool that teleports the player using it a set distance in the direction he’s facing, it’s important that said player keeps his momentum after being teleported as i would like to use this tool in a parkour game.

  2. What is the issue? Player momentum is gone on teleport wich makes it feel weird and unpractical to use

Here’s the code in the tool

sp=script.Parent

script.Parent.Activated:Connect(function()	
	local character=sp.Parent
	local rootpart=character:FindFirstChild('HumanoidRootPart')
	rootpart.CFrame *= CFrame.new(0, 0, -5)
end)

thx for your time

1 Like

I’m no expert but perhaps you can get the players current walkspeed as a variable, move the character and reset it as the players walkspeed.

Sorry I forgot the exact syntax to write the below code
character:MoveTo(–characters primary parts lookVector * Vector3.new(distanceFromCharacter))

Something like this.