How to actually lock the camera into a part

I’m making a little meme game. What I need for help is how to lock the camera into a part without having it stay still.

What I want:

What I got (during playtesting)

Anyone know how to stop this?
Heres the code I used:

local event = game.ReplicatedStorage:WaitForChild("PlayAnimation")
local cc = workspace.CurrentCamera
local cam = workspace.BasicCameraRig4

script.Parent.MouseButton1Click:Connect(function()
	cc.CameraType = Enum.CameraType.Scriptable
	cc.CameraSubject = cam.Lvl2
	cc.CFrame = cam.Lvl2.CFrame
	cc.FieldOfView = 35
	event:FireServer()
end)
1 Like

Seems like the camera rotation is flipped, try rotating the cam.Lvl12 basePart 180 degrees.

Now I also realize that you want it to move… what I’d do is just set the cc.Frame originally to the cam.Lvl12 CFrame. Then from there Tween the Camera CFrame to a new check point, could just make invisible parts where you want the next frame to be. Then in the Tween just tween to that position, pause, and resume.

Is there any way to do that with rig animation?

Not completely sure, maybe, but I wouldn’t know where to start with that (not much of an animator), I’d use TweenService to animate the change in CFrame for the camera.

Its been too long, eventually I fixed my issue.