BreakJoints (Function): Difference between revisions
From Goodblox Wiki
Jump to navigationJump to search
(created the page for real this time. accidentally wrote the page for the wrong function YOU IDIOT) |
No edit summary |
||
| Line 12: | Line 12: | ||
This code will break all the joints contained in the [[GBX.lua.Model (Object)|Model]] named 'Model' in the Workspace. | This code will break all the joints contained in the [[GBX.lua.Model (Object)|Model]] named 'Model' in the Workspace. | ||
<pre>workspace.Model:BreakJoints()</pre> | <pre>workspace.Model:BreakJoints()</pre> | ||
==See also== | |||
*[[Joints]] | |||
*[[MakeJoints (Function)|MakeJoints]] | |||
[[Category:Functions]] | [[Category:Functions]] | ||
Latest revision as of 23:52, 23 September 2021
| Function | |
|---|---|
| Syntax | BreakJoints( ) |
| Returns | n/a |
| Description: | Breaks any surface connection with any adjacent part, including Welds and other JointInstances. |
| In Object: | BasePart, Model |
Example
This code will break all the joints contained in the Model named 'Model' in the Workspace.
workspace.Model:BreakJoints()