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