Is there any difference in between these 2 lines at line 9? both of them makes the bullet travel at 200 in the direction i am clicking.
bodyvelocity.Velocity = CFrame.new(part.Position,mouse.Hit.Position).lookVector * 200
bodyvelocity.Velocity = mouse.Hit.lookVector * 200
*part position is the position of the bullet.
full script:
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
mouse.Button1Down:Connect(function()
print(CFrame.new(mouse.Hit.Position).lookVector *200)
local part = Instance.new("Part", workspace)
local bodyvelocity = Instance.new("BodyVelocity", part)
bodyvelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyvelocity.Velocity = mouse.Hit.lookVector * 200 -- this line
part.CanCollide= false
part.Position = plr.Character.Head.Position
end)

4 comments
i think you got this from another question :> https://scriptinghelpers.org/questions/82208/could-someone-explain-why-you-have-to-use-the-lookvector-here
and no i dont think there is any difference
mouse.Hit.LookVector is the same as CFrame.new(RootPart.Position, mouse.Hit.Position).LookVector (correct me if I'm wrong) - so I think doing that is redundant.
Your script is from this page. https://scriptinghelpers.org/questions/82196