I can't think of a way to explain it. I'm basically taking two points and connecting them using a GUI Frame. It's working for the most part, but it gets off course in it's X dimension more and more as I move the points away in their Y dimension.
The names of the functions in this snippet should explain what they do, I just don't want to paste a lot of code if not needed. If you think it's an issue with one of them, though, I'd be more than happy to paste the functions.
local m = {};
m.AbsolutePosition = Vector2.new(0,0);
game:GetService("RunService").RenderStepped:connect(function()
m.AbsolutePosition = Vector2.new(mouse.X,mouse.Y);
connector.Size = UDim2.new(0,getDistance(a.AbsolutePosition,m.AbsolutePosition),0,connectorWidth);
connector.Position = UDim2.new(0,getLeftMost(a.AbsolutePosition,m.AbsolutePosition).X,0,(a.AbsolutePosition.Y+m.AbsolutePosition.Y)/2);
connector.Rotation = getAngleTo(a.AbsolutePosition,m.AbsolutePosition) * (180/math.pi);
end)
Here's a GIF of what it's doing.

1 comment
Thank you for the help :)