function warpPlayer(M,B)local A=M:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")A.Position=Vector3.new(B.X,B.Y+3,B.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 pad2.PointLight.Enabled=true warpPlayer(M.Parent,pad2.Position)task.wait(2)bounce=true pad2.PointLight.Enabled=false 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 pad1.PointLight.Enabled=true warpPlayer(M.Parent,pad1.Position)task.wait(2)bounce=true pad1.PointLight.Enabled=false 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
		pad2.PointLight.Enabled = true
		warpPlayer(hit.Parent, pad2.Position)
		task.wait(2)
		bounce = true
		pad2.PointLight.Enabled = false
	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
		pad1.PointLight.Enabled = true
		warpPlayer(hit.Parent, pad1.Position)
		task.wait(2)
		bounce = true
		pad1.PointLight.Enabled = false
	end
end)
