BreakJoints (Function): Difference between revisions
From Goodblox Wiki
Jump to navigationJump to search
(created the page) |
(created the page for real this time. accidentally wrote the page for the wrong function YOU IDIOT) |
||
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> | |||
Model | |||
<pre> | |||
</pre> | |||
[[Category:Functions]] | [[Category:Functions]] |
Revision as of 23:50, 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()