#How do I set the Y velocity of the player during a dash script
11 messages · Page 1 of 1 (latest)
What are you using for velocity?
if moveDirection == Vector3.new(0,0,0) then -- if player is not currently moving/walking
dashDirection = HRP.Position + Vector3.new(lookVector.X, 0 , 0)
else -- if player are currently moving/walking
dashDirection = HRP.Position + Vector3.new(moveDirection.X, 0, 0)
end
moveDirection, dashDirection, lookVector, and HRP are all variables
dashDirection = HRP.Position + Vector3.new(lookVector.X,3,0)
it'll add 3 to the Y direction
so that will set the y velocity to 0?
(I forgot to mention that the script only allows dashing when jumping, so if you jump and dash, it can send you upwards)
and if dashing while falling you will dash downward/diagonally too
** You are now Level 1! **
Hi
SOLVED
I used lua HumanoidRootPart.Velocity = Vector3.yAxis