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