1:
CFrame.new(Root.Position, Part.Position)
2:
Root.CFrame + Root.CFrame.LookVector * 5
How could I make a single CFrame that describes the same as these two together?
(Turn and advance at the same time)
→ Advancing in the direction of Part
1:
CFrame.new(Root.Position, Part.Position)
2:
Root.CFrame + Root.CFrame.LookVector * 5
How could I make a single CFrame that describes the same as these two together?
(Turn and advance at the same time)
→ Advancing in the direction of Part
CFrame.new(Root.Position + Root.CFrame.LookVector * 5, Part.Position)
Almost, i needed it to advance in the direction of Part
Perhaps you could try
CFrame.new(Root.Position,Part.Position) * (Root.CFrame.LookVector * 5)
It does advance though, the position parameter of the CFrame.new changes to move forward the lookvector direction.
(CFrame.LookAt(Root.Position, Part.Position)) * (Root.CFrame + Root.CFrame.LookVector * 5)
I solved with this
CFrame.new(Root.Position + CFrame.new(Root.Position, Part.Position).LookVector * 5), Part.Position)
tried but “Attempt to call nil value” here.
no, this is Root CF LVector before the cframe is built. Goes on its own forward and then turn.
tried but led me to strange positions.