Get player's desired move direction regardless of platform

How do I get a universal movement direction input (WASD, gamepad joystick, mobile joystick etc)
Keep in mind that I do not have access to Humanoid.MoveDirection in this situation due to the thing I am working on having no actual characters.

local controlModule = require(game.Players.LocalPlayer.PlayerScripts.PlayerModule.ControlModule)

while true do
    local moveVector = controlModule:GetMoveVector()
    print(moveVector)
    task.wait(1)
end
3 Likes