Joystick direction / thumbstick direction

I’m making a dashing system for my game and it works perfect for pc but no so good for console, I’m trying to get the direction of the thumbstick so I can make the player dash in that direction

my issue really is just the between points of the stick (-X , Y) or (X , -Y)

image

When i move the stick in one of those points i just get 0,0 or -0,0
I tried using a deadzone too but still nothing

(trying to do this but for the thumbstick)
image

1 Like

Did you find any solution to fix your issue?

no, i haven’t and its been a few months now, i kinda just gave up

you can use the humanoid.

there is a parameter in a players humanoid called “MoveDirection” it is a look vector.

-- player.Character.Humanoid.MoveDirection

local studs6 = player.Character.PrimaryPart.Position+(player.Character.Humanoid.MoveDirection*6)
 --position 6 studs in front of wherever the player is going.
local UIS = game:GetService("UserInputService")
UIS.InputChanged:connect(function(input, processed)
	if input.UserInputType == Enum.UserInputType.Gamepad1 then
		if input.KeyCode == Enum.KeyCode.Thumbstick1 then
			print(input.Position.X, input.Position.Y)
		end
	end
end)