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

0

i already tried lookvector, and it doesnt work properly either

0

char.HumanoidRootPart.Velocity = ( char.HumanoidRootPart.CFrame.lookVector * workspace.Gravity )