Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to Rotate a Force?...

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)

2 comments

0

Could you elaborate? "but the bullet flys the same way no matter the bullets rotation" What do you want?

0

I'd use bodygyros, they have something that specifically points to a position. This way may be laggy, though.

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.