camera:Interpolate() wont work

Hi, I have a script that I normally use for cutscenes ingame. For that I use this localscript. The localscript is in the StarterCharacterScripts:

localscript:

local player = game.Players.LocalPlayer
local cameraInterpolateEvent = game.ReplicatedStorage.Remotes.cameraInterpolateEvent
local cameraToPlayerEvent = game.ReplicatedStorage.Remotes.cameraToPlayerEvent

cameraInterpolateEvent.OnClientEvent:Connect(function(posEnd,focusEnd,duration)
		local camera = game.Workspace.CurrentCamera
		camera.CameraType = Enum.CameraType.Scriptable
		
		camera:Interpolate(
			posEnd,
			focusEnd,
			duration
		)
end)

cameraToPlayerEvent.OnClientEvent:Connect(function()
	local camera = game.Workspace.CurrentCamera
	
	camera:Interpolate(
		player.Character.PrimaryPart.CFrame,
		player.Character.PrimaryPart.CFrame,
		1
	)
	task.wait(0.7)
	camera.CameraType = Enum.CameraType.Custom
	
end)

script:

cameraInterpolateEvent:FireAllClients(game.Workspace.CameraGroup2.CameraPart.CFrame,game.Workspace.CameraGroup2.TargetPart.CFrame,1.5)

For that I use a model that has a CameraPart and a TargetPart. For some models it works but for new models that I copied and pasted from the old ones the camera rotates but is stuck on its place. I really dont know why it is not working for the other models. Does anybody know how I can improve this script or maybe theres a bug that I cant find?

I would be grateful for any help.

1 Like

:Interpolate is deprecated. Use game:GetService("TweenService") instead.

1 Like

Can you explain how I can use TweenService on the camera please? I never used it on the camera before I dont know what Goal I need to add for the camera. But I already know about the other stuff like TweenInfo.

Here’s an example.

1 Like