return function(e,S)local c=workspace:WaitForChild("\067\104\101\099\107\112\111\105\110\116\115")local Y=((e:WaitForChild("\108\101\097\100\101\114\115\116\097\116\115")):WaitForChild("\083\116\097\103\101")).Value Y-=1 local R=e.Character R:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")R:WaitForChild("\072\101\097\100")R:WaitForChild("\072\117\109\097\110\111\105\100")R:PivotTo(CFrame.new(c[Y].Position+Vector3.new(0,6,0)))wait()R:PivotTo(CFrame.new(c[Y].Position+Vector3.new(0,6,0)))end

return function(plr, dialogueFolder)
	local Checkpoints = workspace:WaitForChild("Checkpoints")
	local Stage = plr:WaitForChild("leaderstats"):WaitForChild("Stage").Value
	Stage -= 1
	local char = plr.Character
	char:WaitForChild("HumanoidRootPart")
	char:WaitForChild("Head")
	char:WaitForChild("Humanoid")
	char:PivotTo(CFrame.new(Checkpoints[Stage].Position + Vector3.new(0,6,0)))
	wait()
	char:PivotTo(CFrame.new(Checkpoints[Stage].Position + Vector3.new(0,6,0)))
end
