Rope Length Issue

So, Im trying to get make the rope length the distance between the player’s humanoid root part and the attachment I put at the mouse point but it keeps giving me zero for some reason

local Rope = Instance.new("RopeConstraint")
Rope.Name = ropename
Rope.Restitution = 1
Rope.Length = (hit.p - humrp.Position)
print(Rope.Length)
Rope.Parent = handparent
Rope.Color = BrickColor.new("Institutional white")
Rope.Thickness = .12
Rope.Enabled = true
Rope.Visible = true
Rope.Attachment0 = attach0
Rope.Attachment1 = MouseAttachment
1 Like

Rope.Length should be a number. (hit.p - humrp.Position) is a Vector3. You probably meant to do (hit.p - humrp.Position).Magnitude instead (.Magnitude returns the length of a Vector3).

1 Like

Oh crap wow dang thanks man thats what I meant