Local Rope = Instance.new("RopeConstraint") Works very strange

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

Looks Like Everything Works Fine, But Rope Is Flying Somewhere


You don’t need to set the CFrame of the attachments. To the attachment, the origin is the part’s CFrame. It has nothing to do with the rope!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.