I’ve been having issues with my Fly script, Descending does not work on mobile. It works completely fine on PC. The user slides and holds the down arrow to start descending, in the output you can see it prints “Descend” with the correct value. However the user keeps flying up, but “Ascend” works completely fine.
https://giant.gfycat.com/SnivelingBleakCowbird.webm
-- Set the flying speed(works)
Speed = (WingsControls.FlyingStatus == "Ascend" or WingsControls.FlyingStatus == "Descend") and WingsControls.FlyingSpeed or WingsControls.FlyingStatus == "Halt" and 16 or 0
-- Set the Y axis for the BV(Descend doesn't work on mobile)
Y = WingsControls.FlyingStatus == "Ascend" and 1 or WingsControls.FlyingStatus == "Descend" and -1 or WingsControls.FlyingStatus == "Halt" and 0 or 1
if Vector3.new(MoveVector.X, Y, MoveVector.Z) ~= Vector3.new(0, Y, 0) or WingsControls.FlyingStatus ~= "Halt" then
BodyVelocity.Velocity = CFrame.new(Character.HumanoidRootPart.Position, Character.HumanoidRootPart.CFrame * CFrame.new(MoveVector.X, Y, MoveVector.Z).p).lookVector * (not Wings.FlightBoost and Speed or Speed * BoostMulitplyer)
elseif WingsControls.FlyingStatus == "Halt" then
BodyVelocity.Velocity = Vector3.new(0, 0, 0)
end