function CameraModule.animateToHumanoidAsync(M)M.camera.CameraType=Enum.CameraType.Scriptable local O=M.initialCFrame if not O then warn("\073\110\105\116\105\097\108 \067\070\114\097\109\101 \110\111\116 \115\101\116\044 \119\105\108\108 \097\110\105\109\097\116\101 \116\111 \097 \100\101\102\097\117\108\116 \099\097\109\101\114\097 \112\111\115\105\116\105\111\110 \098\101\104\105\110\100 \116\104\101 \112\108\097\121\101\114")end M:_tweenCamera(O)M.initialCFrame=nil M.surfaceGui=nil M.camera.CameraType=Enum.CameraType.Custom end
--[[
	(Yields) Animates camera to go back to the original position of the player's Humanoid.
]]
function CameraModule:animateToHumanoidAsync()
	self.camera.CameraType = Enum.CameraType.Scriptable

	-- We assume that the humanoid does not move after initial transition into the canvas camera position
	local target = self.initialCFrame

	if not target then
		warn("Initial CFrame not set, will animate to a default camera position behind the player")
	end

	self:_tweenCamera(target)

	self.initialCFrame = nil
	self.surfaceGui = nil

	-- Reset camera back to custom type
	self.camera.CameraType = Enum.CameraType.Custom
end
