Best way to read mobile thumbstick input?

Been on my mind for a while though never got around to figuring out if there is a better way to read the thumbstick movement on a mobile device. The current way I’d figure is to read the MoveDirection property in the Humanoid, but I’m wondering if there is an alternative to this.

Thanks in advance

2 Likes

Originally, I had thought MoveDirection had provided the values that I needed, but this was not the case. What I was looking for is to directly read input data from the dynamic thumbstick given to mobile clients. I figured out that I can do this by requiring the PlayerModule and using the following code:

local Player = game:GetService("Players").LocalPlayer
local PlayerModule = require(Player.PlayerScripts.PlayerModule)

print(PlayerModule:GetControls():GetMoveVector()) -- Returns what I needed
20 Likes