Revision Difference
Entity:ManipulateBoneJiggle#562727
<function name="ManipulateBoneJiggle" parent="Entity" type="classfunc">
<description>Manipulates the bone's jiggle status. This allows non jiggly bones to become jiggly.</description>
<realm>Shared</realm>
<args>
<arg name="boneID" type="number">Index of the bone you want to manipulate.</arg>
<arg name="type" type="number">The jiggle bone type. There are currently the following options:
* `0` = No jiggle override, use model default
* `1` = Jiggle⤶
* `2` = Force disable jiggle bone⤶
* `1` = Force jiggle, with hardcoded settings⤶
* `2` = Force disable jiggle bone (currently also broken, but will be fixed in the next update)⤶
</arg>
</args>
</function>
<example>
<description>Turn everyone into jelly mode.</description>
<code>
for _, ply in ipairs( player.GetAll() ) do
local i = 0
while i < ply:GetBoneCount() do
ply:ManipulateBoneJiggle( i, 1 )
i = i + 1
end
end
</code>
</example>