BreakJoints (Function)

From Goodblox Wiki
Revision as of 23:41, 23 September 2021 by Xyrafrost (talk | contribs) (created the page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Function
Syntax BreakJoints( )
Returns n/a
Description: Creates a joint on any side of the object that has a surface ID that can make a joint.
In Object: BasePart, Model


Description

MakeJoints forms a bond (a joint) between bricks if they have the required surface types:

SurfaceType Weld Universal Studs Inlet Glue Smooth
Weld Weld Weld Weld Weld Weld Weld
Universal Weld Snap Snap Snap Glue No Joint
Studs Weld Snap No Joint Snap Glue No Joint
Inlet Weld Snap Snap No Joint Glue No Joint
Glue Weld Glue Glue Glue Glue Glue
Smooth Weld No Joint No Joint No Joint Glue No Joint

Brick Form:

local brick = workspace.Brick
brick:MakeJoints()

Model Form:

local model = workspace.Model
model:MakeJoints()