Detecting mobile stick movement?

Hey, so I’m not exactly sure how to do this. For a game I’m working on, I’m using an entirely different rig with no built-in Roblox movement controls, so I have to wire all the different inputs correctly.

I think I know how to get the gyrostick movements from controllers, but what about the stick movement for mobile users??

Thanks :slight_smile:

1 Like

The mobile stick movement controls are part of ROBLOX’s core scripts. You can get a hold of them by the following:

local PlayerModule = require(Player.PlayerScripts.PlayerModule)
local Controls = PlayerModule:GetControls()
print(Controls:GetMoveVector())

Hope this helps!

6 Likes

Nice to see you on the forums!

Thanks, this should do exactly what I need. :slight_smile:

1 Like