|
|
Line 1: |
Line 1: |
| {|
| | #REDIRECT [[MakeJoints (Method)]] |
| |<onlyinclude>{{Function|
| |
| name = MakeJoints
| |
| |arguments =
| |
| |returns = n/a
| |
| |description = Creates a joint on any side of the object that has a surface ID that can make a joint.
| |
| |object = [[RBX.lua.FlagStand (Object)|Flagstand]], [[RBX.lua.Part (Object)|Part]], [[RBX.lua.Model (Object)|Model]], [[RBX.lua.Seat (Object)|Seat]], [[RBX.lua.SpawnLocation (Object)|SpawnLocation]], [[RBX.lua.Workspace (Service)|Workspace]]
| |
| |}}</onlyinclude>
| |
| |}
| |
| | |
| == Description ==
| |
| MakeJoints forms a bond (a joint) between bricks if they have the required surfaces types:
| |
| {|border="1" cellspacing="5" style=" -webkit-border-radius: 4px; -moz-border-radius: 4px; height: 100%; background-color: #FFFFFF; border-top: dashed 2px #ff0000; border-left: dashed 2px #ff0000; border-bottom: dashed 2px #aa0000; border-right: dashed 2px #aa0000; margin: 6px; margin-right: 10px; margin-left: 10px; clear: none; padding: 2px;"
| |
| |-
| |
| |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
| |
| |}
| |
| | |
| == Usage ==
| |
| Brick Form:
| |
| <pre>
| |
| brick = game.Workspace.Brick
| |
| brick:MakeJoints()
| |
| </pre>
| |
| | |
| Model Form:
| |
| <pre>
| |
| model = game.Workspace.Model
| |
| model:MakeJoints()
| |
| </pre>
| |