Making a welded part point to a end position

I’m not very good at CFrame but what I’m trying to do is make this arm point the part I’m dragging around. It seems to somewhat work but when it goes behind the part it inverts itself.

while wait() do 
workspace.TEST.Model.Start.Weld.C0 = CFrame.new(workspace.TEST.Model.Start.CFrame.p, workspace.TEST.End.CFrame.p):ToObjectSpace(workspace.TEST.Model.Start.CFrame)
end

What Start, Part, and End are


image
image

You should do the reverse of that ^

workspace.TEST.Model.Start.CFrame:ToObjectSpace(CFrame.new(workspace.TEST.Model.Start.CFrame.p, workspace.TEST.End.CFrame.p))
1 Like

Thanks for the quick response!

1 Like