Ok, I got this (and it sucks as heck);
posa = Vector3.new(x,y,z)
posb = Vector3.new(newx,newy,newz)
mag = (posa - posb).magnitude
b.Size = Vector3.new(1,mag,1)
b.CFrame = CFrame.new(x,y,z)
b.CFrame = b.CFrame*CFrame.Angles(math.rad(newx-x),math.rad(newy-y),math.rad(newz-z))
So how would I get the brick in an angle that the one side of the brick touches point a, and the other side touches point b? |