local Value = 0
local Attach0 = nil
local Attach1 = nil
local OBJ = nil
**OBJ is a raycast result**
Attach0 = Instance.new("Attachment")
Attach0.Name = "Attachment0"
Attach0.CFrame = OBJ.CFrame
Attach0.Parent = OBJ
Attach0.Visible = true
elseif Value > 1 then
Attach1 = Instance.new("Attachment")
Attach1.Name = "Attachment1"
Attach1.CFrame = OBJ.CFrame
Attach1.Parent = OBJ
Attach1.Visible = true
local Rope = Instance.new("RopeConstraint")
Rope.Attachment0 = Attach0
Rope.Attachment1 = Attach1
Rope.Visible = true
Rope.Parent = OBJ
print(Attach1)
print(Attach0)
Looks Like Everything Works Fine, But Rope Is Flying Somewhere
![Untitled](/secure-media-uploads/uploads/original/5X/1/c/4/3/1c43ae21856376f97736683c77c2a029f88a150b.png)