How to make cone face towards direction of two points?

I have this cone

image

I have this projectile

image

I want to place this arrow at the end of each line of the projectile and then make it face the direction the line is going using the two points it has but im not sure what im doing wrong?

they are clearly not facing the direction of the line.

this is what i did

cone.CFrame = CFrame.lookAt(v[10],v[11],v[10])

v[10] being the end point of the line and v[11] being the starting point of the line

help?

Remove the third argument. It’s optional and means “approximately what direction should be ‘up’”

For your purposes that doesn’t matter.

You may then need to rotate by +/-90 degrees on one axis:

cone.CFrame = CFrame.lookAt(v[10],v[11]) * CFrame.Angles(-math.rad(90), 0, 0)
1 Like

W
W

thanks it works. i didn’t know that’s how it worked cause i dont know how to read.