How to make parts follow character's move direction

I’m trying to achieve something similar to this:

I have that part done but sometimes putting the parts behind the character’s HumanoidRootPart doesn’t look good.

For example, when I’m falling it doesn’t look realistic and the parts shoot behind the character instead of the direction I’m falling from… I want it to look like this(a trail):

The only solution I can think of is using the MoveDirection of the character. I’m not sure about the math of this part or if it will even work. It would also need to work with jumping, swimming, etc. Thanks!

2 Likes

Maybe render stepped and orientate it correctly by the players humanoidrootparts orientation?

I don’t think that will work because

  1. It will cause more lag than needed
  2. Falling down doesn’t change the HRP’s orientation, so it wouldn’t make a difference.

After multiple equations I got it to work:

part.CFrame = CFrame.lookAt(part.Position, sphere.Position + character.HumanoidRootPart.Velocity)

https://gyazo.com/663a835c99ab8db8b7e690a79b8faa82