- I made a projectile, the intention is that it moves straight from the caster’s humanoid root part at the time of casting.
- Well it does the job, however when the part is set free (unanchored) it chooses to move to the left (it also sometimes moves to the right), I assume this is not an issue with the code but with the body velocity. I attached screenshots of the “curve” and as you can see, the projectile when unanchored, is no longer centered. (the body velocity settings are MaxForce 5000,5000,5000, and P 1250)

- I have reviewed the code (code below) and I have reviewed the attachments to the projectile, I cannot detect an issue
fireballClone.BodyVelocity.Velocity = (plr.Character.HumanoidRootPart.CFrame.LookVector*100)
local destination1 = Vector3.new(hit.Parent.Torso.Position.X, hit.Parent.Torso.Position.Y , hit.Parent.Torso.Position.Z)
local destination2 = Vector3.new(hit.Parent.Torso.Position.X, hit.Parent.Torso.Position.Y , hit.Parent.Torso.Position.Z)
local Settings1 = {Position = destination1}
local Settings2 = {Position = destination2}

here is all things related to the projectile, the scripts can be ignored