function warpPlayer(w,z)local y=w:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")y.Position=Vector3.new(z.X,z.Y+3,z.Z)end pad1.Touched:Connect(function(w)if w.Parent and((w.Parent:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")).Health>0 and bounce)then bounce=false warpPlayer(w.Parent,pad2.Position)task.wait(1)bounce=true end end)pad2.Touched:Connect(function(w)if w.Parent and((w.Parent:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")).Health>0 and(bounce and padIsOneDirectional.Value==false))then bounce=false warpPlayer(w.Parent,pad1.Position)task.wait(1)bounce=true end end)
-----------------------

function warpPlayer(player, location)
	local HRP = player:WaitForChild("HumanoidRootPart")
	HRP.Position = Vector3.new(location.X, location.Y + 3, location.Z)
end

pad1.Touched:Connect(function(hit)
	if hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid").Health > 0 and bounce then
		bounce = false
		warpPlayer(hit.Parent, pad2.Position)
		task.wait(1)
		bounce = true
	end
end)

pad2.Touched:Connect(function(hit)
	if
		hit.Parent
		and hit.Parent:FindFirstChildOfClass("Humanoid").Health > 0
		and bounce
		and padIsOneDirectional.Value == false
	then
		bounce = false
		warpPlayer(hit.Parent, pad1.Position)
		task.wait(1)
		bounce = true
	end
end)
