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

Function

getElementBonePositionOffset

Server and clientElementsTrilogy Hub only

Returns the offset of an element attached to a bone.

Syntax

float, float, float getElementBonePositionOffset(element theElement)

Arguments

theElementelement
The element.

Returns

x, y, z, or false if the element is not attached to a bone.

Example

local x, y, z = getElementBonePositionOffset(box)

See also