Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local A, B = script.Parent.A, script.Parent.B
- local segs = 1
- local vec3 = Vector3.new
- local cfrm = CFrame.new
- local floor = math.floor
- local ceil = math.ceil
- function drawLine ()
- local psize = (B.Position - A.Position).magnitude
- local p = Instance.new("Part")
- p.Anchored = true
- p.Size = vec3(1, 1, psize)
- p.CFrame = cfrm(A.Position) * cfrm(0, 0, (B.Position - A.Position).magnitude /2)
- p.Parent = script.Parent
- print(psize)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement