placeEvent.OnServerEvent:connect(function(M,n,e)local a=M.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=n+Vector3.new(0,new.Size.Y/2,0)local F=Instance.new("\087\101\108\100\067\111\110\115\116\114\097\105\110\116")F.Parent=new F.Part0=new F.Part1=e new.Anchored=false newAtt0=Instance.new("\065\116\116\097\099\104\109\101\110\116")newAtt0.Parent=a.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=a.Torso newRope.Length=20 newRope.Restitution=.3 newRope.Visible=true newRope.Thickness=.1 newRope.Color=BrickColor.new("\066\108\097\099\107")placeEvent:FireClient(M,new)end end)ropeEvent.OnServerEvent:connect(function(M,n,e)if newRope then newDir=n isHeld=e end end)cutEvent.OnServerEvent:connect(function(M)if newRope then newRope:Destroy()newRope=nil new:Destroy()newAtt0:Destroy()newAtt1:Destroy()end end)
--// Event Connections
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, -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)
