Character camera not facing right direction when respawned on checkpoint

I have had this issue where when the player respawns the camera of the player always faces to the left for some reason. I have tried rotating the checkpoint since the script uses the cframe but it still does not work.

Here is the code

player.CharacterAdded:Connect(function(character: Model)
		task.wait()
		
		local corresponding_stage = WorkspaceStages:FindFirstChild(tostring(Stage.Value))
		if corresponding_stage then
			
			local cframe = CFrame.new(corresponding_stage.Position + Vector3.new(0, 4, 0))
			character:PivotTo(cframe)
		end
	end)
end)

what rotation should it go by the corresponding_stage’s rotation?

local cframe = CFrame.new(corresponding_stage.Position + Vector3.new(0, 4, 0))local cframe = corresponding_stage.CFrame + Vector3.new(0, 4, 0)

Thanks this seemed to work perfectly.

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