I wanted to make a rope constraint from my tool to the part in the workspace.
So i scripted this___
script.Parent.Parent.Equipped:Connect(function()
wait(1)
local at1 = Instance.new("Attachment")
at1.Parent = script.Parent
local at2 = Instance.new("Attachment")
at2.Parent = game.Workspace.Part1
local rope = Instance.new("RopeConstraint")
rope.Length = rope.CurrentDistance
rope.Attachment0 = at1
rope.Attachment1 = at2
rope.Parent = game.Workspace.Part1
rope.Visible = true
end)
and it did something like this ___
I tried to fix it. It didnt happen.
Then i used a rod constraint. And it worked somewhat like this__
script.Parent.Parent.Equipped:Connect(function()
wait(1)
local at1 = Instance.new("Attachment")
at1.Parent = script.Parent
local at2 = Instance.new("Attachment")
at2.Parent = game.Workspace.Part1
local rope = Instance.new("RodConstraint")
rope.Length = rope.CurrentDistance
rope.Attachment0 = at1
rope.Attachment1 = at2
rope.Parent = game.Workspace.Part1
rope.Visible = true
end)
I want to make it so that the length of the rope does not change. Please do kindly help me.