What am I trying to achieve?
I’m trying to achieve allowing the player to move freely whilst its connected between an object in the workspace and the player’s tool.
What have I tried?
I’ve tried to use RodConstraints but it makes you keep at a fixed length whilst its connected: https://gyazo.com/9a448899d087757d589459ba348bd901
I tired to anchor it but it still keeps at a fixed distance.
local part1, part2 = workspace.Part1, workspace.Part2
local part3 = Instance.new("Part")
part3.CanCollide = false
part3.Anchored = true
part3.Parent = workspace
while true do
-- get length of part
local length = (part2.Position - part1.Position).Magnitude
part3.Size = Vector3.new(1,1, length)
-- create a Cframe looking at the second part
local lookAtPartCF = CFrame.new(part1.Position, part2.Position)
-- add half the lenght to the look vector
-- part3.CFrame = lookAtPartCF + (lookAtPartCF.LookVector * (length * 0.5))
part3.CFrame = lookAtPartCF + (lookAtPartCF.LookVector * (length / 2))
wait()
end