So I made a ki blast type move. I want it to shoot to where the mouse is but not on the y axis, only on the x,z axis. I tried this, but it's not working please help!
v.Velocity= head.lookVector*330 + Vector3.new(mousehit.lookVector.x,0,mousehit.lookVector.z)
Instead of multiplying by 330
, multiply by a vector with the Y component as 0
:
1 | v.Velocity = head.lookVector * Vector 3. new( 330 , 0 , 330 ) + Vector 3. new(mousehit.lookVector.x, 0 , mousehit.lookVector.z) |