I want to make a part willingly move up, down, left, or right just towards a part, i want it to swing at it such as a NPC aimming at it with a gun and then shooting, but the bullet doesn't follow, instead, the NPC aims and then the bullet is shot in the direction of the player where the player was at when the bullet was shot. However, I don't understand what I must use to achieve this.
COMMUNITY QUESTION
Make Part shoot towards to something?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
gg
This is where vectors are useful. The bullet should move in the direction of some vector v. This vector v should point from the gun to the target player. Therefore, v = player.Position - gun.Position. Does this help?
Thanks, I am not very skilled in math. Do I make the bullet follow to the given position?