How to make projectile face direction it's travelling in while lerping

Hello, I’m currently having trouble making the projectile face the direction where it’s going in. I’m lerping the projectile to the mouse position. The sample code is:

for i = 0, 1, 0.01 do
  P.CFrame = P.CFrame:Lerp(CFrame.lookAt(P.Position, Params[1]) * CFrame.new(Params[1]))
  task.wait(0.03)
end

This makes it travel in a very weird curve, haven’t observed if it actually made it face the mouse though, any solutions?

1 Like
local mouse = player:GetMouse()
local mousePos = mouse.Hit --cframe value

This is all you’ll need to get the mouse’s current CFrame.