Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone guide me into where to learn how to create a Custom Walking Script??

Asked by 1 year ago

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)

Answer this question