Experimental

An early preview: docs, the API and the dashboard may change or break.

Report a problem

Luau API reference

Generated from the type files Ember ships, the same ones Glowstone Studio checks your scripts against. A script starts from three globals and requires the rest:

local players = require("@ember/players")

players.joined:connect(function(player)
	player:send("<yellow>Welcome!")
end)

Everything else a script uses, loaded with require. @ember modules are the host, @std kits are Luau built on them, and @pack modules name a host pack's blocks and items.

Script conventions

The ember host API a running experience script sees.

  • Durations are seconds (20 ticks a second); positions are experience-local Vectors, offset from the host's origin.
  • An error in a task is reported to the creator console and the script keeps running; more than 100 errors in a minute stops the experience.