Fly on mobile devices

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make it so that mobile players can fly the same way as PC players.
  2. What is the issue? Include screenshots / videos if possible!
    I want mobile players to be able to control their flight.
    For PC I use Enum.PlayerActions, however this is not supported by the mobile and because of this I am asking for help.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried PlayerModule.ControlModule:GetMoveVector() but it works the same as MoveDirection (player can’t fly up or down).

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

1 Like

Get the camera space move vector and pretty much treat it as wasd.

1 Like

If it’s not difficult for you, could you explain a little how to do this?

The camera has a .CFrame, if you use the camera’s CFrame.LookVector it will return the direction the camera is facing. Then you can apply the ControlModule or MoveDirection as wasd and apply that to the direction the camera is facing to move the character in that direciton.

It’s easy once you have the camera space movedirection. Just leave one axis as left/right and the other as forwards/back. Although getting the camera movedirection is hard. I actually needed help. Anyway, here’s the post:

Edit: i guess i was ninja’d

It worked as expected! Thanks a lot!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.