I'm trying to code this custom walking were when you press w,a,s,d you move but your torso doesn't turn in that direction (because i already have a script that makes the torso turn where the mouse is located.) I been searching everywhere to learn where to learn but still no leads, can someone please help me.

Here's the code

local function WalkingFordward(actionName, inputState)
    if inputState == Enum.UserInputState.Begin then
        print("Player is walking...")
    elseif inputState == Enum.UserInputState.End then
        print("Player has stop walking...")
    end
end

ContextActionService:BindAction("Forward", WalkingFordward, false, Enum.KeyCode.W)