Problem with Camera.CFrame in First Person

Hi.
I need help with a problem i’ve come into when a ‘cutscene camera’ is triggered when the player is currently in first person.

The only issue is that the body parts of the character are invisible when it’s started.

Third Person

First Person

The portion of the script that handles the camera work:

if Settings.TakeDownEnabled then
							Camera.CameraType = Enum.CameraType.Scriptable
							CameraModel:SetPrimaryPartCFrame(Character.HumanoidRootPart.CFrame)
							TweenService:Create(Camera,TweenInfo.new(.5,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{CFrame = CameraModel.CamPart.CFrame}):Play()
						end

The Camera work is needed for a TakeDown animation that’ll be soon added for the Third version of my FE Gun Kit Mod. Everything else went well, as the only problem to fix is the invisible body parts when Executing someone in first person.

Any help would be appreciated.

I think just make the current viewframe of the player to 10 for 0.1 seconds. The Character of the Player Gets invisible when hes in first person so this would fix the problem.

How could i do that? How do i change the viewframe like that

The transparency appears to be controlled by BasePart.LocalTransparencyModifier.
https://developer.roblox.com/en-us/api-reference/property/BasePart/LocalTransparencyModifier
Loop through all parts in the character and set it to 0.

for _, v in ipairs(player.Character:GetDescendants()) do
	if v:IsA("BasePart") then
		v.LocalTransparencyModifier = 0
	end
end

This is Player.CameraMinZoomDistance.
Assuming you have a variable named Player:

local lastdistance = Player.CameraMinZoomDistance
Player.CameraMinZoomDistance = 10
wait()
Player.CameraMinZoomDistance = lastdistance

The wait() seems to be there to let the default camera script notice that the camera has moved away, and to fix the transparency.

Thank you for the help, Both of you. I really appreciate it and now i’ve finally fixed the problem. :pray: