im trying to make players leap by propelling them in the direction they are facing but for some reason, it just makes you go in the same direction every time.
script:
local velocity = Instance.new("BodyVelocity")
velocity.Parent = char.HumanoidRootPart
velocity.Velocity = char.HumanoidRootPart.CFrame * Vector3.new(0,-20,100)

3 comments
https://scriptinghelpers.org/questions/14747/what-is-lookvector-and-how-do-i-use-it
i already tried lookvector, and it doesnt work properly either
char.HumanoidRootPart.Velocity = ( char.HumanoidRootPart.CFrame.lookVector * workspace.Gravity )