The player's head is invisible when a cutscene happens

When a cutscene happens and changes the camera’s CFrame. The player’s head is invisible. I know its because when your in first person the head is invisible, but I try to change the camera mode to classic or change the zoom distance but their head is still invisible. I’m stuck on this.

remotes.CutsceneRemotes.LabDoorOpened.OnClientEvent:Connect(function()
	local ti = TweenInfo.new(3, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut,0)
	local goal = {CFrame = camfolder.LabReveal.LabRevealCamPart2.CFrame}
	local goal2 = {}
	local animation = ts:Create(Camera, ti, goal)
	local animation2 = ts:Create(Camera, ti, goal2)
	Player.PlayerGui.FPBodyScript.Enabled = false
	Player.PlayerScripts.CAMERAZOOM.Enabled = false
	Player.CameraMode = Enum.CameraMode.Classic
	Camera.CameraType = "Scriptable"
	Camera.FieldOfView = 50
	goal2.FieldOfView = 100
	Player.Character.SprintScript.Enabled = false
	script.Parent.MainUI.Enabled = false
	script.Parent.Dialogue.Enabled = false
	Camera.CFrame = game.Workspace.CutsceneCameras.LabReveal.LabRevealCamPart.CFrame
	wait(10)
	animation:Play()
	animation2:Play()
end)

Maybe try to add this:
Player.Character:WaitForChild("Head").LocalTransparencyModifier = 0
And for the accessories use this:
for i,v in pairs(Player.Character:GetChildren()) do if v:IsA("Accessory") then v.Transparency = 0 end end

transparency is not a member of accessories

1 Like

Oh yeah, my bad its:
for i,v in pairs(Player.Character:GetChildren()) do if v:IsA(“Accessory”) then v:WaitForChild("Handle").Transparency = 0 end end
Forgot abt that hehe

hmm for some weird reason the accesories still dont show but it shows no error

Maybe try changing the camera’s minimum zoom property to 5 and then changing it back when the cutscene ends?

After some modification it works! Thanks!

Player.Character:WaitForChild("Head").LocalTransparencyModifier = 0
	for i, v in ipairs(Player.Character:GetChildren()) do
		if v:IsA("Accessory") then
			local Handle = v:FindFirstChild("Handle")
			if Handle then
				Handle.LocalTransparencyModifier = 0
			end
		end
	end

Nice!


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.