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)
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
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)