Hello,
This question has been reposted, as it didn't receive any answers after 6 days.
Context: - I am trying to modify my fly script to allow for mobile inputs.
Problem: - I cannot get my function to fire when the thumbstick is used.
Attempted solution 1: - I tried using ContextActionService binding to Enum.PlayerActions.CharacterForward, CharacterBackward, etc. This is what I am using to detect WASD keyboard inputs, but it does not work for mobile devices (I'm guessing it won't work for gamepads, ie xbox controllers, etc)
Attempted solution 2: - I tried to use UserInputService.InputBegan:Connect(function)
. This didn't fire when I used the emulator in studio.
Attempted solution 3: - I tried to use Humanoid.MoveDirection
. This works for the x and z axis. However, it doesn't update the y axis, which is required for a fly script.
Any advice/solutions you can give would be appreciated.
Tweakified