Camera bug when switching cameratype

Hello, so I’ve tried to make a camera part by making the camera type into “scriptable” and setting it’s CFrame to a camera part, at first it works but when I try to switch back to “custom” camera type this is the result:
https://gyazo.com/05d595cb2627c215d55d76b6352d67ec

Thank you for your time :slight_smile:

Code for setting it back to custom:

landingui.Play_Button.MouseButton1Click:Connect(function()
	local Camera = workspace.CurrentCamera
	Camera.CameraType = Enum.CameraType.Custom
end)

May I see the code to switch the camera to a different CFrame, perhaps there is an error there.

You need to set the CameraSubject:

landingui.Play_Button.MouseButton1Click:Connect(function()
	local Camera = workspace.CurrentCamera
    Camera.CameraSubject = MyCharacter.Humanoid
	Camera.CameraType = Enum.CameraType.Custom
end)