Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

findSocket

findSocket(entity, name): Object3D<Object3DEventMap> | null

The object on entity’s drawn body that name names: a HumanoidSocket on any humanoid body, in the character’s own axes at rest, turned with its bone; else the drawn model’s node of that name, in its own axes; null where the body holds neither or is not drawn. On an entity with no body view, such as a cart, a node under its drawn object. As Roblox’s attachment names, Unity’s GetBoneTransform and Godot’s BoneAttachment3D.

Parameter Type
entity Entity
name string

Object3D<Object3DEventMap> | null