[CFrame] R6 Legs face the moving direction

Hello. Im lacking skills and it’s really hard to find any informations about this topic.
I’ve seen this Make leg face move direction and it helped me a bit for understanding how it work. I want to make the legs of the player look where he is moving like the game Write a letter or even evade or the game called “town”.
here is a visual showcase: Test - YouTube

-- I think this is a good start. But as i said im not able to go further since im not good
-- enough :sob: but i know that we need to get the orientation of the torso with (CFrame.LookAt) and face the legs where the torso is facing (i think)

local LeftLeg = script.Parent:WaitForChild('Torso'):WaitForChild('Left Hip')
local RightLeg = script.Parent:WaitForChild('Torso'):WaitForChild('Right Hip')
local CenterOfLegs = Vector3.new(0,-1,0)
local rootCFrame = script.Parent.HumanoidRootPart.CFrame
local moveDirection = rootCFrame.lookVector


while wait(.001) do
	
end

If you have any imformations that could help me, i would really appreciate it .

2 Likes

you mean smth similar to this?



well it’s known as one of popular system mostly Roblox Developers need but none of them were actually good cuz:

  1. Inverse Kinematics are buggy
  2. produceral doesn’t work on crouch, run and mostly systems
    if u are finding this as “Cframe” that also works NOT locally then u can download these models (1 lean 1 Cframe Movement 1 Massless Movement) and test it in ur game:
    Lean = allow your torso to lean right and left
    Lean Torso Movement.rbxm (1.7 KB)
    D Lerp Movement = allow your torso, legs, arms to lerp orientation using Cframe
    DLerpMovement.rbxm (3.1 KB)
    Massless Movement = allow your character to become complete massless (except head)
    massless character.rbxm (790 Bytes)

goodluck using these, all 3 in StarterCharacterScripts (especially DLerp and Massless)

1 Like