Player dies while using camera interpolation

[ SOLVED ]

The problem appeared to be that I’m trying to interpolate to a position of a part while that part is the watch object, I solved this by simply creating 2 parts one that’s the positon I’m trying to interpolate to and the other one is the focus part.

I’m currently working on a story game, and I plan to use lots of cutscenes in this one to make it enjoyable.

I ran into my first problem while trying to use camera interpolation and changing the players CFrame makes them die.

This is my code:

game.ReplicatedStorage:WaitForChild("HadKey").OnClientEvent:Connect(function(player)
	

	wait(3)
	
	
	
	local camera = game.Workspace.CurrentCamera
	
	camera.CameraType = Enum.CameraType.Scriptable
	
	
	
	
	camera:Interpolate(workspace.CP1.CFrame, workspace.CP1.CFrame , 3)
	
	

	wait(3)

	
	camera:Interpolate(workspace.CameraPart2.CFrame, workspace.CameraPart3.CFrame, 10)
	
	
	camera.CameraType = Enum.CameraType.Custom
	
end)

I’ve seen no posts about this and I don’t know what the problem could be, the interpolation plays and then after a couple of seconds the player dies and the screen turns black.

Also I get this error in output:


RunService:fireRenderStepEarlyFunctions unexpected error while invoking callback: Players.ModonkDev.PlayerScripts.PlayerModule.CameraModule.BaseCamera:752: invalid argument #3 to 'clamp' (max must be greater than or equal to min)  

Here is a video of it happening:

I am considering that the player dies because it goes through the terrain? How would I fix this if so?