Character disappears after set camera

Hi. I want create a cutscene for my game. But when i set the camera to part, player’s character disappears in client. But it is still appear in server. And if i make move the character in client, its appearing again

local komsukapi = game.Workspace:WaitForChild("komsununevi")
local cam = game.Workspace.CurrentCamera
local talkfriendly = game.Players.LocalPlayer.PlayerGui.gui2.talkfriendly
local threat = game.Players.LocalPlayer.PlayerGui.gui2.threat
local sound = script["UnderTale - Asgore(Text)"]
local neighbortalk = game.Players.LocalPlayer.PlayerGui.gui2.neighbortalk


komsukapi.ProximityPrompt.Triggered:Connect(function(plr)
	
	plr.Character:WaitForChild("Humanoid").WalkSpeed = 0
	repeat wait()
		cam.CameraType = Enum.CameraType.Scriptable
	until cam.CameraType == Enum.CameraType.Scriptable
	cam.CFrame = workspace:WaitForChild("komsukamera").CFrame
	komsukapi.ProximityPrompt.Enabled = false
	wait(0.5)
	script.Parent["Door Knocking"]:Play()
	
	wait(1)
	
	neighbortalk.Visible = true
	
	
	local function typing(object, text, lenght)
		for i = 1, #text, 1 do
			sound:Play()
			object.Text = string.sub(text, 1, i)
			wait(lenght)
		end
		sound:Stop()
	end
	typing(neighbortalk.TextLabel, " " , 0.15)
	
	wait(2)
	
	talkfriendly.Visible = true
	threat.Visible = true
	
	
end)
1 Like

I realise it happens every time when i set the camera to a part