local Body = Instance.new("BodyVelocity",character.Torso) Body.Velocity = Vector3.new(0,25,0)
This will be hard to explain but but I want to use body velocity only in the Y direction. Something like the code above but it just ignores the z and x directions. When using (0,25,0) it does not allow you to move while going up.
you could use regular velocity instead. I think that is what body velocity does anyway?
I have heard tell that regular velocity is hard to work with but have never experienced that myself.
Hope this helps!
EDIT2: My code did not work, something else you could try
while (your condition for flight is met) do wait () local Body = character.Torso Body.Velocity = Body.Velocity * Vector3.new(1,0,1) -- sets the Y to 0 Body.Velocity = Body velocity + Vector3.new(0,25,0) -- increases it to 25 essentially setting Y to 25? end
Please let me know if this method works, If it doesn't then I will remove my answer, (but really this should work now)