function regenHealth()if regening then return end regening=true while Humanoid.Health<Humanoid.MaxHealth do local g=wait(1)local N=Humanoid.Health if N~=0 and N<Humanoid.MaxHealth then local V=(.01*g)*Humanoid.MaxHealth N=N+V Humanoid.Health=math.min(N,Humanoid.MaxHealth)end end if Humanoid.Health>Humanoid.MaxHealth then Humanoid.Health=Humanoid.MaxHealth end regening=false end Humanoid.HealthChanged:connect(regenHealth)function onTouched(g)local N=game.Players:GetPlayerFromCharacter(g.Parent)if N then(game:GetService("\084\101\108\101\112\111\114\116\083\101\114\118\105\099\101")):Teleport(4641921091,N)end end script.Parent.Torso.Touched:connect(onTouched)

function regenHealth()
	if regening then return end
	regening = true
	
	while Humanoid.Health < Humanoid.MaxHealth do
		local s = wait(1)
		local health = Humanoid.Health
		if health~=0 and health < Humanoid.MaxHealth then
			local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
			health = health + newHealthDelta
			Humanoid.Health = math.min(health,Humanoid.MaxHealth)
		end
	end
	
	if Humanoid.Health > Humanoid.MaxHealth then
		Humanoid.Health = Humanoid.MaxHealth
	end
	
	regening = false
end

Humanoid.HealthChanged:connect(regenHealth)
  
function onTouched(hit)
   local player = game.Players:GetPlayerFromCharacter(hit.Parent)
   if player then
       game:GetService("TeleportService"):Teleport(4641921091,player)  --replace the numbers with your place id
  end
end


script.Parent.Torso.Touched:connect(onTouched)
