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