|
| 24 Aug 2016 04:29 PM |
Anyone have a formula that will allow me to make a line between two points? Thanks |
|
|
| Report Abuse |
|
2eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 1351 |
|
|
| 24 Aug 2016 04:32 PM |
local point1, point2 = Vector3.new(0,0,0), Vector3.new(100,10,0) local distance = (point2 - point1).magnitude
local part = Instance.new('Part', workspace) part.Anchored = true part.Size = Vector3.new(.2, .2, distance) part.CFrame = CFrame.new(point1, point2) * CFrame.new(0, 0, -distance/2)
|
|
|
| Report Abuse |
|
| |