Builtin Library
README.md
ParentConstraint
Copies the full transform (position + rotation + scale) from a target entity — like parenting but without hierarchy. The entity stays independent in the scene tree.
Public fields: targetEntityId, axisX, axisY, axisZ, weight.
targetEntityId names the entity whose transform is copied: write the entity, its id or its name, and it reads back as the entity; a name is found when the constraint is applied. It is an entity reference, so a constraint a scene's build.luau writes between two entities the build spawns (targetEntityId = target or targetEntityId = target.id) names the entity the build placed, through every rebuild, save, load and play.
Methods: setTarget(entityId), setWeight(w).
entity(id).component.add("ParentConstraint", {
targetEntityId = entity.find("player"),
weight = 1.0,
})