I'm trying to make a 2d lockon camera and I have just about everything down except for the camera moving back. I've tried just about everything but nothing so far has helped.
while game:GetService('RunService').RenderStepped:wait() do part.CFrame = CFrame.new((pos1 + pos2)/2 + Vector3.new(0, 5, 0), pos1 + Vector3.new(0, 5, 0)) * CFrame.Angles(0, math.pi/2, 0) end
The part simulates the camera. It's positioned between the positions of both players and is elevated by 5 studs and rotated 90 degrees. All I'm trying to do now is move it back so both characters are in the FOV of the camera. You can think of this like a 2d lock - on system essentially.