Apply velocity to a part where the player is facing

I want to apply velocity to a part in the direction a player is facing.

I’ve tried searching for other topics but most are outdated, I’ve also never really worked with velocity or forces at all.

Any help is appreciated!

1 Like

I guess use the lookvector of the humanoidrootpart to check the direction.

Then you can apply the velocity, if you just want it to go straight, which im guessing you’re trying to do here, use LinearVelocity.

1 Like

In the linearvelocity do I change set the vector velocity?

You would have to set the VelocityConstraintMode to vector.

I would just use LineDirection but VelocityConstraintMode has to be set to line.

Just read documentation, you’ll get the result closest to what you want, cuz idk what u want.

Make a short script, its a learning opportunity, you can learn velocities right now.

Refer back if you’re really stuck.

1 Like

Ok first, I will clarify, what I want to happen is that the part gets launched forward, still being affected by gravity. Currently, I am having issues making the part move. The line direction changed but the part doesn’t move. I have already tried changing the line velocity to 1000.

After tweaking around for a while I found how to preform it how I wanted it to work, thanks for helping!

1 Like

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