Skip to main content

Actions

Actions are the lowest level of an instructional unit. Actions are programmed in Luau and defined by the developer of the game, for use through ChainLink in maps. Specifically, Actions are called when Chain is being executed.

Built-In

ChainLink comes with default Actions you can choose to register. Below is a list of what they all are.

Action NameUse Case
WaitWill yield Chain execution like task.wait()
OnceIf you want a Link to be triggered only once, deferring removal of the Link tag to next resumption cycle
ForceApplies a force of a certain magnitude in a direction to an assembly
EmitParticlesEmits a certain amount of particles by ParticleEmitter name and amount
SetColorChanges the color of BaseParts using an attribute for the color
PlaySoundsPlays any number of sound instances by name
StopSoundsStops any number of sound instances by name
UnanchorCan unanchor BaseParts
SetAttributeCan assign attributes on instances
SetPropertyCan assign properties on instances

It is recommended to read the default Actions entry on the security page before registing any.

Custom

Creating custom Actions is very important to a featureful implementation of ChainLink. To define a custom Action, you'll need to write an Chain Call and then register it during configuration. If you use Luau types, you can use the exported CallDefinition type to assist with this process. A good resource for writing Actions is the source code of ChainLink where the default Actions are defined.

To learn more about Chain Calls, see the Chain page. It is important to keep security in mind when creating your own Actions.