Local function QuaternionToCFrame(px, py, pz, x, y, z, w) Local sou = Instance.new("Sound", par or workspace) W2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)Ĭoroutine.resume(coroutine.create(function() W1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2) Local Color = BrickColor.new("Dark stone grey") Local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit) Local width = (a + (b - a).unit * len1 - c).magnitude
Local function CFrameFromTopBack(at, top, back) Part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10įunction part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)īrickColor = BrickColor.new(tostring(brickcolor)),įunction mesh(Mesh, part, meshtype, meshid, offset, scale)įunction weld(parent, part0, part1, c0, c1) Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 Local RbxUtility = LoadLibrary("RbxUtility")