MakeJoints (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "<code lua>" to "<SyntaxHighlight code="lua">" Tags: mobile web edit mobile edit |
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>" Tags: mobile web edit mobile edit |
||
(2 intermediate revisions by the same user not shown) | |||
Line 26: | Line 26: | ||
Brick Form: | Brick Form: | ||
< | <syntaxhighlight lang="lua"> | ||
brick = Workspace.Brick | brick = Workspace.Brick | ||
brick:MakeJoints() | brick:MakeJoints() | ||
</ | </syntaxhighlight> | ||
Model Form: | Model Form: | ||
< | <syntaxhighlight lang="lua"> | ||
model = Workspace.Model | model = Workspace.Model | ||
model:MakeJoints() | model:MakeJoints() | ||
</ | </syntaxhighlight> | ||
[[Category:Methods]] | [[Category:Methods]] |
Latest revision as of 06:16, 27 April 2023
![]() | |
Returns | nil |
Description: | Creates a joint on any side of the object that has a surface ID that can make a joint. |
Member of: | BasePart, Model |
Description
MakeJoints forms a bond (a joint) between bricks if they have the required surfaces 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:
brick = Workspace.Brick
brick:MakeJoints()
Model Form:
model = Workspace.Model
model:MakeJoints()