Camera movement with animation

I’m trying to make a cutscene in a game and in the cutscene a npc moves a camera around.

I want the the players camera to have the perspective of the camera object the npc is holding.

How can I do this?

Note: I do not have Moon Animator and I animate in blender.

bumping this topic 11111111111

is the CameraObject the npc is holding a part?

1 Like

Assuming the cutscene is triggered by a localscript, you can use run.PreRender:Connect() and tie it to a function which moves the workspace.Camera.CFrame to the npc’s camera part.

local run = game:GetService("RunService")
local camera = workspace.Camera

local cameraPart -- The part the npc holds

local function onCutsceneStart()
	local function cameraTied()
		camera.CFrame = cameraPart.CFrame
	end
	local toggle = run.PreRender:Connect(cameraTied)
	
	-- additional cutscene sequence stuff
	
	toggle:Disconnect()
end
onCutsceneStart()

The rest can be done by welding the cameraPart to the npc’s hand

1 Like

yes its a part the npc is holding.