EventSequencer.onOrchestrationFinished:Connect(function(s)if s==PSV_SCENE.Name then local s=SHOW_SCENES[1]if s then EventSequencer.loadScene(s.Name)else warn("\084\104\101\114\101 \097\114\101 \110\111 \115\099\101\110\101\115 \105\110 \116\104\101 \115\104\111\119 \108\105\115\116 \116\111 \108\111\097\100\046")loadPreShowVenue()end else for m,h in ipairs(SHOW_SCENES)do if h.Name==s then if m<#SHOW_SCENES then EventSequencer.loadScene(SHOW_SCENES[m+1].Name)else loadPreShowVenue()end end end end end)

EventSequencer.onOrchestrationFinished:Connect(function(endedSceneName)	
	if endedSceneName == PSV_SCENE.Name then
		-- PreShowVenue just ended. Now load the first scene in the show.
		local scene1 = SHOW_SCENES[1]
		if scene1 then
			EventSequencer.loadScene(scene1.Name)
		else
			warn("There are no scenes in the show list to load.")
			loadPreShowVenue()
		end
	else
		-- Find the ended-scene in the show list so that we know what to load next.
		for i,scene in ipairs(SHOW_SCENES) do
			if scene.Name == endedSceneName then
				if i < #SHOW_SCENES then
					-- Load the next scene.
					EventSequencer.loadScene(SHOW_SCENES[i+1].Name)
				else
					-- Last scene in the show ended. Load the PreShowVenue.
					loadPreShowVenue()
				end
			end
		end
	end
end)

