I’m adding a dive for movement, and I want you to be able to keep your momentum when you chain a dive and a dash
-
What do you want to achieve? Be able to get the current velocity of the player and then add it onto my upvector to keep maintain momentum
-
What is the issue? I can’t find a way to place an upvector on the humanoidroot part without removing all speed.
-
What solutions have you tried so far? I tried adding the angular velocity with the upvector but it errors saying "attempt to perform arithmetic (add) on vector3 and number.
Currently this is what I have
if momentumdive > 0 then
diveforwardamt = diveforwardamt + momentumdive
waitdiveamt = 0
upvectoramt = 0
hrp.Velocity = hrp.CFrame.UpVector*100
end
hrp.Velocity = hrp.CFrame.UpVector*upvectoramt
script.Dive:play()
task.delay(waitdiveamt, function()
hrp.Velocity = hrp.CFrame.LookVector*diveforwardamt