Camera focus on a part?

I’m no expert but from my understanding, a lerp is like doing a single frame of a tween? Something like that. When you actually call the lerp, what you’ll want to do is:

local NewCFrame = CFrame.new(Camera.Position) * LookDirection
Camera.CFrame = Camera.CFrame:lerp(NewCFrame, 0.02)

You can always change the 0.02 to whatever you want, and you’ll need to define LookDirection as the direction you want the camera to face. You can do this with the following line:
local LookDirection = CFrame.new(Camera.CFrame.Position, ThingYouWantToLookAt.Position)

What we’re telling the script to do is take the camera, and do a single frame of a tween to a new cframe. The new cframe is the camera’s current position, but looking directly towards something, so it just rotates the camera a bit to face the part you want to look at.

2 Likes