You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to make a working flight system for mobile. -
What is the issue? Include screenshots / videos if possible!
I want the flight to be controlled by a joystick, which is found on mobile phones. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried Enum.PlayerActions and CurrentCamera.CFrame:VectorToWorldSpace(Humanoid.MoveDirection) / CFrame:VectorToObjectSpace(Humanoid.MoveDirection) .
The first method did not work at all, and the other two worked strangely.
VectorToWorldSpace / VectorToObjectSpace method example:
( Script example )
BodyVelocity.Velocity = CurrentCamera.CFrame:VectorToWorldSpace(Humanoid.MoveDirection)*50
( Video example )
By this video I meant If I turn the camera to the right, left or back my controls breaks and if I for example try to fly forward then my character flies in a different direction
I’ve been trying to find a solution for a long time; I hope someone can help me with it