Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to Rotate a Force?...

Asked by
lucas4114 607 Moderation Voter
8 years ago

So idk what the title should be, I'm making a gun and everything works, but the bullet flys the same way no matter the bullets rotation, I did Bullet.Velocity = Vector3.new (10,0,0)

0
Could you elaborate? "but the bullet flys the same way no matter the bullets rotation" What do you want? Destrings 406 — 8y
0
I'd use bodygyros, they have something that specifically points to a position. This way may be laggy, though. HungryJaffer 1246 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

While I don't recommend using Velocity for bullets, here is the answer to your problem.

Instead of assigning a Vector3 value to the Velocity, give the lookVector of the bullet, multiplied by the speed you want your bullet to travel. Example:

bullet.Velocity = bullet.CFrame.lookVector * 100

Make sure you do this before assigning the bullet's parent.

Ad

Answer this question