BreakJoints (Function): Difference between revisions
From Goodblox Wiki
Jump to navigationJump to search
(created the page) |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
|arguments = | |arguments = | ||
|returns = n/a | |returns = n/a | ||
|description = | |description = Breaks any surface connection with any adjacent part, including [[GBX.lua.Weld (Object)|Welds]] and other [[GBX.lua.JointInstance (Object)|JointInstances]]. | ||
|object = [[GBX.lua.BasePart (Object)|BasePart]], [[GBX.lua.Model (Object)|Model]] | |object = [[GBX.lua.BasePart (Object)|BasePart]], [[GBX.lua.Model (Object)|Model]] | ||
}}</onlyinclude> | }}</onlyinclude> | ||
'''Example''' | |||
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> | |||
==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()