Apply force FORWARD from the player?

Let’s say you’re behind an object, and you want to apply a force forward. It will apply force FORWARDS from you.

If you were to flip it around and go behind it, it would apply force TOWARDS you. If you are using the same script of course.

How could I make an object ALWAYS go forward from the player?

I apologize if the subject is misleading, but I didn’t know how else to word it.

Get the LookVector of the player character’s model’s CFrame?

3 Likes

I don’t know why I didn’t think of this. I tried it but it changes it to such a low value that nothing is really changed when the force is applied.
image

CFrame.LookVector is a unit vector, which means its magnitude is 1, try multiplying it with a bigger number?

2 Likes

do it in a serverscript

Velocity = player.Root.CFrame.LookVector*speed

player is the localplayer sent from the localscript
Root is the HumanoidRootPart
speed is the variable (change how fast you want it)

1 Like

I don’t know why I thought it would also make it go up which is why I didn’t multiply it lol

It’s already a server script. It works fine I just needed to find the direction the player was looking.

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