--edit the below function to execute code when this response is chosen OR this prompt is shown
--player is the player speaking to the dialogue, and dialogueFolder is the object containing the dialogue data

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
