placeEvent.OnServerEvent:connect(function(A,U,l)local d=A.Character if not newRope then new=Instance.new("\080\097\114\116")new.Parent=workspace new.Anchored=true new.CanCollide=false new.Size=Vector3.new(.2,.2,.2)new.BrickColor=BrickColor.new("\066\108\097\099\107")new.Material=Enum.Material.Metal new.Position=U+Vector3.new(0,new.Size.Y/2,0)local Y=Instance.new("\087\101\108\100\067\111\110\115\116\114\097\105\110\116")Y.Parent=new Y.Part0=new Y.Part1=l new.Anchored=false newAtt0=Instance.new("\065\116\116\097\099\104\109\101\110\116")newAtt0.Parent=d.Torso newAtt0.Position=Vector3.new(0,-0.75,0)newAtt1=Instance.new("\065\116\116\097\099\104\109\101\110\116")newAtt1.Parent=new newRope=Instance.new("\082\111\112\101\067\111\110\115\116\114\097\105\110\116")newRope.Attachment0=newAtt0 newRope.Attachment1=newAtt1 newRope.Parent=d.Torso newRope.Length=20 newRope.Restitution=.3 newRope.Visible=true newRope.Thickness=.1 newRope.Color=BrickColor.new("\066\108\097\099\107")placeEvent:FireClient(A,new)end end)ropeEvent.OnServerEvent:connect(function(A,U,l)if newRope then newDir=U isHeld=l end end)cutEvent.OnServerEvent:connect(function(A)if newRope then newRope:Destroy()newRope=nil new:Destroy()newAtt0:Destroy()newAtt1:Destroy()end end)

placeEvent.OnServerEvent:connect(function(plr,newPos,what)

 local char =	plr.Character

	if not newRope then
			new = Instance.new('Part')
			new.Parent = workspace
			new.Anchored = true
			new.CanCollide = false
			new.Size = Vector3.new(0.2,0.2,0.2)
			new.BrickColor = BrickColor.new('Black')
			new.Material = Enum.Material.Metal
			new.Position = newPos + Vector3.new(0,new.Size.Y/2,0)
			
			local newW = Instance.new('WeldConstraint')
			newW.Parent = new
			newW.Part0 = new
			newW.Part1 = what
			new.Anchored = false
			
			newAtt0 = Instance.new('Attachment')
			newAtt0.Parent = char.Torso
			newAtt0.Position = Vector3.new(0,-.75,0)
			newAtt1 = Instance.new('Attachment')
			newAtt1.Parent = new
			
			newRope = Instance.new('RopeConstraint')
			newRope.Attachment0 = newAtt0
			newRope.Attachment1 = newAtt1
			newRope.Parent = char.Torso
			newRope.Length = 20
			newRope.Restitution = 0.3
			newRope.Visible = true
			newRope.Thickness = 0.1
			newRope.Color = BrickColor.new("Black")

		placeEvent:FireClient(plr,new)
	end
end)

ropeEvent.OnServerEvent:connect(function(plr,dir,held)
	if newRope then
		newDir = dir
		isHeld = held
	end
end)

cutEvent.OnServerEvent:connect(function(plr)
	if newRope then
		newRope:Destroy()
		newRope = nil
		new:Destroy()
		newAtt0:Destroy()
		newAtt1:Destroy()
	end
end)
