function ot(s)if s.Parent~=nil then local P=game.Players:playerFromCharacter(s.Parent)if P~=nil then if P.leaderstats.Stage.Value==script.Parent.Name-1 then local m=s.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if m~=nil then if m.Health~=0 then P.leaderstats.Stage.Value=script.Parent.Name end end end end end end script.Parent.Touched:connect(ot)
--Va en los Bloques de Checkpoints

function ot(hit)
	if hit.Parent ~= nil then
		local player = game.Players:playerFromCharacter(hit.Parent)
		if player ~= nil then
			if player.leaderstats.Stage.Value == script.Parent.Name - 1 then
				local h = hit.Parent:FindFirstChild("Humanoid")
				if h ~= nil then
					if h.Health ~= 0 then
						player.leaderstats.Stage.Value = script.Parent.Name
					end
				end
			end
		end
	end
end

script.Parent.Touched:connect(ot)
