I have tried many ways of doing this but I cant seem to find any thing that works.
So if anyone knows how I would do this it would be very helpful
I have tried this but I really dont understand it and so I cant figure out how to get it to work
Perhaps you could make it so the scale of the part is equal to the two parts positions?
Yes I can do this but how would I put it into the middle of the positions.
I just figured out how I would scale it lol
local partA = workspace.PartA
local partB = workspace.PartB
local posA = partA.Position
local posB = partB.Position
local magnitude = (posA - posB).Magnitude
local part = Instance.new("Part")
part.Size = Vector3.new(1, 1, magnitude)
part.CFrame = CFrame.lookAt(posA, posB) * CFrame.new(0, 0, -magnitude / 2)
part.Parent = workspace
1 Like
Thank you very much! This worked out.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.