I have this function that uses a bezier curve for leaping, however, I’m not to sure how to make it move the player in the direction they’re currently looking in.
local function leap(character : Model, distance : number, height : number)
local root = character:FindFirstChild("HumanoidRootPart")
local distance = distance
local height = height
local pointA = root.CFrame
local pointC = pointA*CFrame.new(0,0,distance)
local pointB = pointA:lerp(pointC,0) * CFrame.new(0,height,0)
for i = 0, 1, .1 do
root.CFrame = CFrame.new(Util:QuadraticBezier(i,pointA.Position,pointB.Position,pointC.Position))
task.wait(0.01)
end
end