Hi, i’m trying to figure out how people make walk animations depending on the direction the player is walking. For example, if someone is walking backwards, the animation will show the player walking backwards instead of the default one sided walk animation.
Here’s a video basically showing what I said:
If someone can show me and open source or tell me how this is scripted thank you
I dont know that much about controlling animations but you just choose one of several based on the direction and speed the character is moving relative to the direction they are facing.
You can use the Facing property of HumanoidRootPart. local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character:WaitForChild(“Humanoid”) --Or character.Humanoid
local root = humanoid.RootPart
–This will change the animation you are playing depending on the direction the player is facing
if root.Facing == Vector3.new(1, 0, 0) then --Right
–Play right animation
elseif root.Facing == Vector3.new(0, 1, 0) then --Up
–Play up animation
elseif root.Facing == Vector3.new(0, 0, 1) then --Front
–Play front animation
elseif root.Facing == Vector3.new(-1, 0, 0) then --Left
–Play left animation
elseif root.Facing == Vector3.new(0, -1, 0) then --Down
–Play down animation
elseif root.Facing == Vector3.new(0, 0, -1) then --Back
–Play back animation
end