ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getElementBoneRotationOffset

Function

getElementBoneRotationOffset

Server and clientElementsTrilogy Hub only

Returns the rotation of an element attached to a bone (in degrees).

Syntax

float, float, float getElementBoneRotationOffset(element theElement)

Arguments

theElementelement
The element.

Returns

rx, ry, rz, or false if the element is not attached to a bone.

Example

local rx, ry, rz = getElementBoneRotationOffset(box)

See also