Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

bodyvelocity not moving in the right direction? [SOLVED]

Asked by 5 years ago
Edited 5 years ago

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)
0
i already tried lookvector, and it doesnt work properly either fireshoots25 5 — 5y
0
char.HumanoidRootPart.Velocity = ( char.HumanoidRootPart.CFrame.lookVector * workspace.Gravity ) Azarth 3141 — 5y

Answer this question