When I say between two points I mean two positions in the map, so the part wont 'fill in' but rather stretch from this position to this one. Is this possible?
Say for example:
1 | pos 1 = game.Workspace.Pos 1. Value |
2 | pos 2 = game.Workspace.Pos 2. Value |
3 | part = Instance.new( "Part" ) |
4 | --Part front at pos1 and back and pos2 |
1 | local v = (pos 1 - pos 2 ) |
2 | part.CFrame = CFrame.new(pos 2 + 0.5 *v, pos 1 ) |
3 | part.Size = Vector 3. new(part.Size.X, part.Size.Y,v.Magnitude) |
Note that because this uses the 2-vector CFrame constructor,you'll get an arbitrary part orientation if pos1 is almost directly above or below pos2, and you'll need to supply more information if you need the part oriented a particular way in this case.