Help on Ropes: Character floats in my rope system

I am welding the dummy on the hammer’s rope to make it move together with the rope, but as the rope is on the air, the dummy starts to float, how can I avoid this?

My current code:

local pos1 = tool.Handle.Position
local pos2 = dummy.HumanoidRootPart.Position
local rope = workspace.Rope
rope.CFrame = CFrame.new((pos1 + pos2) / 2, pos1) --set rope cframe
rope.Size = Vector3.new(0.5, 0.5, distance) --set rope size	
local w = Instance.new("WeldConstraint",dummy.PrimaryPart) --weld dummy with rope
w.Name = "RopeWeld"
w.Part0 = dummy.PrimaryPart
w.Part1 = rope

I want this result:
Screenshot_21

I get this result:
Screenshot_20

why dont you just use rope constraint?

1 Like

I did not know about rope constraint, so I searched and putted it on my system.

My new code, that works:

local at0 = Instance.new("Attachment",torso)
local at1 = Instance.new("Attachment",handle)			
				
local rope = Instance.new("RopeConstraint", workspace) 
rope.Visible = true
rope.Attachment0 = at0
rope.Attachment1 = at1
rope.Length = 15
1 Like