How to transform World side Unit to Object side Unit?

we can get player moving direction from Humanoid.MoveDirection.

but it’s world sided. i wanna get player torso sided movedirection.

for example, if i press D with shiftlock, the movedirection should be (1,0,0) on any camera direction.

	
	local direction = Chr:GetPivot():VectorToObjectSpace(Chr.HumanoidRootPart.AssemblyLinearVelocity)

as i said, i need torso speed but… well, even it need some change but thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.