Open Asterune
Scripting

Scripting

Luau guides and API reference for Asterune scripts.

Asterune scripts use Luau to read and modify instances in a place. The API reference lists classes, data types, enums, and globals from the engine API snapshot.

Getting started

Your first script covers instances, properties, and events.

Guides

GuideTopics
Working with instancesCreation, lookup, parenting, and destruction
Responding to eventsConnections, one-time handlers, and contact events
Building with partsShape, material, collision, and constraints
Moving thingsPosition, rotation, tweens, and velocity
Players and charactersPlayer lifecycle, health, respawn, and teams
Server and clientExecution context, replication, and remote calls
Reacting to playersClicks, prompts, input bindings, and seats
On-screen interfacesScreenGui, layout, text, and buttons
Light, sound and effectsLighting, audio, particles, and explosions
Timing and loopsScheduling, elapsed time, and frame updates
Sharing code with modulesModuleScript, require, and module state
Component definitionsSchemas, fields, handles, queries, persistence, and validation
Systems and schedulingPhases, dependencies, intervals, and parallel execution
Errors and debuggingError handling and troubleshooting

API reference

  • Classes: instance properties, methods, events, and callbacks.
  • Data types: constructors, fields, and value operations.
  • Enums: named options and numeric values.
  • Globals: names supplied by the engine.
  • Parameter and result types: option tables, result records, and type aliases.

Luau standard-library functions such as print, pcall, math, string, and table are documented at luau.org.

Reference page structure

Class pages show construction or service access, inheritance, and replication metadata before the member tables. Detailed member sections follow the tables. Inherited members link to their defining classes. Related APIs and examples appear below the member documentation.

Signatures, defaults, access restrictions, and thread-safety metadata come from the API snapshot. Named constants whose meanings are fully specified by their names and values use the generated enum tables.